fix: svg donation generator push fail

This commit is contained in:
LukeGus
2026-06-29 14:05:47 -05:00
parent 7416734f68
commit 30acbed1a7
+3 -2
View File
@@ -117,10 +117,11 @@ jobs:
fi fi
# Amend the previous bot commit if it exists, otherwise create a new one # Amend the previous bot commit if it exists, otherwise create a new one
LAST_AUTHOR=$(git log -1 --format='%ae') 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 if [ "$LAST_AUTHOR" = "github-actions[bot]@users.noreply.github.com" ]; then
git commit --amend --no-edit git commit --amend --no-edit
git push --force-with-lease git push --force-with-lease "$REMOTE" HEAD:main
else else
git commit -m "chore: update donation goal badge" git commit -m "chore: update donation goal badge"
git push git push "$REMOTE" HEAD:main
fi fi