1
1
Fork 0
mirror of https://git.ari.lt/ari/forgejo-stats.git synced 2024-12-22 06:22:46 +00:00

force push and git reset

Signed-off-by: Ari Archer <ari@ari.lt>
This commit is contained in:
Ari Archer 2024-06-22 15:20:49 +03:00
parent d2bbc76d8f
commit d4c1f05aed
No known key found for this signature in database
GPG key ID: A50D5B4B599AF8A2

View file

@ -20,6 +20,9 @@ jobs:
- name: Check for Skip CI in Last Commit
id: check_commit
run: |
git reset --hard
git pull
git reset --hard
commit_message=$(git log -1 --pretty=%B)
if echo "$commit_message" | grep -q "\[skip ci\]"; then
echo "Skip CI based on commit message" && exit 78;
@ -51,5 +54,5 @@ jobs:
git config --local user.name "Stats CI/CD"
git add commits.png languages.png
git commit -am "[skip ci] Update stats" || echo "No changes to commit"
git push origin HEAD
git push origin HEAD -f
fi