From 0bf07f46e3b54e59d578e83098dc7eb1b5f10e4c Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Thu, 13 Mar 2025 23:49:58 -0400 Subject: [PATCH] Use create pull request action more --- .github/workflows/update-contributors.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/update-contributors.yml b/.github/workflows/update-contributors.yml index 52e83b1c4ce..dd7c8b507db 100644 --- a/.github/workflows/update-contributors.yml +++ b/.github/workflows/update-contributors.yml @@ -32,25 +32,21 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Stage changes - if: steps.check-changes.outputs.changes == 'true' - run: | - git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" - git config --local user.name "github-actions[bot]" - git add README.md - git commit -m "docs: update contributors list [skip ci]" - - name: Create Pull Request if: steps.check-changes.outputs.changes == 'true' uses: peter-evans/create-pull-request@v5 with: token: ${{ secrets.GITHUB_TOKEN }} + add-paths: | + README.md + commit-message: "docs: update contributors list [skip ci]" + committer: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" + branch: update-contributors + branch-suffix: timestamp + delete-branch: true title: "Update contributors list" body: | Automated update of contributors list in README.md This PR was created automatically by a GitHub Action workflow. - branch: update-contributors - branch-suffix: timestamp - delete-branch: true base: main \ No newline at end of file