ci(deps): bump github/update-project-action from f980378bc179626af5b4e20ec05ec39c7f7a6f6d to 21f8a8478d7c5253e166ee62517d3a942b170fa4 #2493
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'CI: Mention external contributors' | |
| on: | |
| pull_request_target: | |
| types: | |
| - closed | |
| branches: | |
| - develop | |
| jobs: | |
| external_contributor: | |
| name: External Contributors | |
| permissions: | |
| pull-requests: write | |
| contents: write | |
| runs-on: ubuntu-24.04 | |
| if: | | |
| github.event.pull_request.merged == true | |
| && github.event.pull_request.author_association != 'COLLABORATOR' | |
| && github.event.pull_request.author_association != 'MEMBER' | |
| && github.event.pull_request.author_association != 'OWNER' | |
| && endsWith(github.event.pull_request.user.login, '[bot]') == false | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: 'package.json' | |
| - name: Install dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Add external contributor to CHANGELOG.md | |
| uses: ./dev-packages/external-contributor-gh-action | |
| with: | |
| name: ${{ github.event.pull_request.user.login }} | |
| author_association: ${{ github.event.pull_request.author_association }} | |
| - name: Create PR with changes | |
| uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e | |
| with: | |
| # This token is scoped to Daniel Griesser | |
| # If we used the default GITHUB_TOKEN, the resulting PR would not trigger CI :( | |
| token: ${{ secrets.REPO_SCOPED_TOKEN }} | |
| commit-message: 'chore: Add external contributor to CHANGELOG.md' | |
| title: 'chore: Add external contributor to CHANGELOG.md' | |
| branch: 'external-contributor/patch-${{ github.event.pull_request.user.login }}' | |
| base: 'develop' | |
| delete-branch: true | |
| body: | |
| 'This PR adds the external contributor to the CHANGELOG.md file, so that they are credited for their | |
| contribution. See #${{ github.event.pull_request.number }}' |