Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qcdyx committed Nov 19, 2023
1 parent 68e62f7 commit d920219
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/update_credits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Update Credits upon opening PR

on:
pull_request:
branches:
- master
types:
- opened
- synchronize
Expand All @@ -10,7 +12,9 @@ jobs:
update-credits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- run: |
contributor_name=$(jq -r '.pull_request.user.login' $GITHUB_EVENT_PATH)
pr_description=$(jq -r '.pull_request.body' $GITHUB_EVENT_PATH)
Expand All @@ -26,7 +30,7 @@ jobs:
git add .github/credits.md
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m "Update credits.md with contributor information" || exit 0
git commit -m "Update credits.md with contributor information"
git push origin ${{ github.event.pull_request.head.ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d920219

Please sign in to comment.