mirror of
https://github.com/BradNut/awesome-uses
synced 2025-09-08 17:40:31 +00:00
chore: commit populate-readme only when chagnes
Sometimes action is started because some data.js only some style changes And on generate working tree is empty And action fails because nothing to commit
This commit is contained in:
parent
b7a0f054f7
commit
0fc8c550e1
1 changed files with 3 additions and 0 deletions
3
.github/workflows/populate-readme.yml
vendored
3
.github/workflows/populate-readme.yml
vendored
|
|
@ -40,7 +40,10 @@ jobs:
|
|||
git add readme.md
|
||||
git config --local user.email "action@github.com"
|
||||
git config --local user.name "GitHub Action"
|
||||
# commit only if any changes
|
||||
if [ ! -z "$(git status --porcelain)" ]; then
|
||||
git commit -m "chore: generate \`readme.md\`, lint \`src/data.js\`"
|
||||
fi
|
||||
|
||||
- name: Push changes
|
||||
uses: ad-m/github-push-action@master
|
||||
|
|
|
|||
Loading…
Reference in a new issue