Skip to content

Commit

Permalink
Add git config for workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
huxingyi committed Dec 17, 2022
1 parent 0c2d6af commit 188ac68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/update-sponsors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ jobs:
- name: Upload README.md
run: |
if git diff --name-only HEAD | grep -q "README.md"; then
git config --global user.email "${{ secrets.MY_EMAIL }}"
git config --global user.name "huxingyi"
git add README.md
git commit -m "Update sponsors"
timestamp=$(TZ=":Australia/Sydney" date)
git commit -m "Update sponsors ${timestamp}"
git push origin HEAD
fi

0 comments on commit 188ac68

Please sign in to comment.