mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-07-15 04:43:36 +00:00
fix: svg donation generator push fail
This commit is contained in:
@@ -117,10 +117,11 @@ jobs:
|
||||
fi
|
||||
# Amend the previous bot commit if it exists, otherwise create a new one
|
||||
LAST_AUTHOR=$(git log -1 --format='%ae')
|
||||
REMOTE="https://x-access-token:${{ secrets.GHCR_TOKEN }}@github.com/${{ github.repository }}.git"
|
||||
if [ "$LAST_AUTHOR" = "github-actions[bot]@users.noreply.github.com" ]; then
|
||||
git commit --amend --no-edit
|
||||
git push --force-with-lease
|
||||
git push --force-with-lease "$REMOTE" HEAD:main
|
||||
else
|
||||
git commit -m "chore: update donation goal badge"
|
||||
git push
|
||||
git push "$REMOTE" HEAD:main
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user