From 97124bc3b6a3adccc4fa2d8de0db219ad74061d9 Mon Sep 17 00:00:00 2001 From: LukeGus Date: Mon, 29 Jun 2026 14:52:14 -0500 Subject: [PATCH] fix: svg donation generator push fail --- .github/workflows/donation-goal.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/donation-goal.yml b/.github/workflows/donation-goal.yml index 95fe52dd..54fde243 100644 --- a/.github/workflows/donation-goal.yml +++ b/.github/workflows/donation-goal.yml @@ -12,6 +12,8 @@ jobs: contents: write steps: - uses: actions/checkout@v4 + with: + token: ${{ secrets.PUSH_TOKEN }} - name: Generate donation goal SVG run: | @@ -109,19 +111,18 @@ jobs: PYEOF - name: Commit SVG run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" + git config user.name "LukeGus" + git config user.email "bugattiguy527@gmail.com" git add repo-images/donation-goal.svg if git diff --cached --quiet; then exit 0 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.PUSH_TOKEN }}@github.com/${{ github.repository }}.git" - if [ "$LAST_AUTHOR" = "github-actions[bot]@users.noreply.github.com" ]; then + if [ "$LAST_AUTHOR" = "bugattiguy527@gmail.com" ]; then git commit --amend --no-edit - git push --force-with-lease "$REMOTE" HEAD:main + git push --force-with-lease origin HEAD:main else git commit -m "chore: update donation goal badge" - git push "$REMOTE" HEAD:main + git push origin HEAD:main fi