chore(ci): commit star history png when untracked
This commit is contained in:
9
.github/workflows/star-history.yml
vendored
9
.github/workflows/star-history.yml
vendored
@@ -33,13 +33,12 @@ jobs:
|
|||||||
- name: Commit and push if changed
|
- name: Commit and push if changed
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
if git diff --quiet; then
|
|
||||||
echo "No changes in star-history.png"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
git config user.name "github-actions[bot]"
|
git config user.name "github-actions[bot]"
|
||||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
git add assets/star-history.png
|
git add assets/star-history.png
|
||||||
|
if git diff --cached --quiet; then
|
||||||
|
echo "No changes in star-history.png"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
git commit -m "chore: update star history chart"
|
git commit -m "chore: update star history chart"
|
||||||
git push
|
git push
|
||||||
|
|||||||
Reference in New Issue
Block a user