mirror of
https://git.ari.lt/ari/forgejo-stats.git
synced 2024-12-22 14:32:45 +00:00
force push and git reset
Signed-off-by: Ari Archer <ari@ari.lt>
This commit is contained in:
parent
d2bbc76d8f
commit
d4c1f05aed
1 changed files with 4 additions and 1 deletions
|
@ -20,6 +20,9 @@ jobs:
|
||||||
- name: Check for Skip CI in Last Commit
|
- name: Check for Skip CI in Last Commit
|
||||||
id: check_commit
|
id: check_commit
|
||||||
run: |
|
run: |
|
||||||
|
git reset --hard
|
||||||
|
git pull
|
||||||
|
git reset --hard
|
||||||
commit_message=$(git log -1 --pretty=%B)
|
commit_message=$(git log -1 --pretty=%B)
|
||||||
if echo "$commit_message" | grep -q "\[skip ci\]"; then
|
if echo "$commit_message" | grep -q "\[skip ci\]"; then
|
||||||
echo "Skip CI based on commit message" && exit 78;
|
echo "Skip CI based on commit message" && exit 78;
|
||||||
|
@ -51,5 +54,5 @@ jobs:
|
||||||
git config --local user.name "Stats CI/CD"
|
git config --local user.name "Stats CI/CD"
|
||||||
git add commits.png languages.png
|
git add commits.png languages.png
|
||||||
git commit -am "[skip ci] Update stats" || echo "No changes to commit"
|
git commit -am "[skip ci] Update stats" || echo "No changes to commit"
|
||||||
git push origin HEAD
|
git push origin HEAD -f
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue