github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/.github/workflows/update-contributors.yml (about)

     1  name: Update Contributors in README
     2  
     3  on:
     4    push:
     5      branches: [main]
     6  
     7  jobs:
     8    update-contributors:
     9      runs-on: ubuntu-latest
    10  
    11      steps:
    12        - uses: actions/checkout@v2
    13          with:
    14            ref: ${{ github.head_ref }}
    15            token: ${{ secrets.BOT_GITHUB_TOKEN }}
    16        - uses: actions/setup-node@v2
    17          with:
    18            node-version: '16.18'
    19        - name: Install dependencies
    20          run: make install-web-dependencies
    21  
    22        - name: Update contributors
    23          run: make update-contributors
    24  
    25        - uses: stefanzweifel/git-auto-commit-action@v4
    26          with:
    27            # these are credentials for https://github.com/pyroscopebot
    28            token: ${{ secrets.BOT_GITHUB_TOKEN }}
    29            commit_user_name: Pyroscope Bot
    30            commit_user_email: dmitry+bot@pyroscope.io
    31            commit_author: 'Pyroscope Bot <dmitry+bot@pyroscope.io>'
    32            commit_message: 'docs: updates the list of contributors in README'
    33            file_pattern: README.md
    34          env:
    35            GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}