Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.

Commit

Permalink
fix: Have github workflow commit changes when finished
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanChen4 committed Jun 29, 2023
1 parent 62f0ae2 commit 3767466
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,12 @@ jobs:
- name: execute py script
run: python updaters.py

- name: Commit and push if changed
run: |-
git add .
git diff
git config --global user.email "github-action-bot@example.com"
git config --global user.name "GitHub Action Bot"
git commit -m "chore: Daily README update" -a || echo "No changes to commit"
git push

0 comments on commit 3767466

Please sign in to comment.