Skip to content

Commit 1883aa4

Browse files
Fix GitHub Actions push permission error
Changes: - Explicitly pass GITHUB_TOKEN in git push URL - Add source count to automated commit messages This fixes the 403 permission error that was preventing the workflow from pushing scraped data back to the repository. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b2fca10 commit 1883aa4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/scrape-and-deploy.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,11 @@ jobs:
6767
echo "No new data to commit"
6868
else
6969
DATE=$(date +%Y-%m-%d)
70-
git commit -m "Update prices for $DATE
70+
SOURCE_COUNT=$(find data -name "*.json" | wc -l | tr -d ' ')
71+
git commit -m "chore: update prices for $DATE ($SOURCE_COUNT sources)
7172
72-
🤖 Generated with GitHub Actions"
73-
git push
73+
🤖 Generated with GitHub Actions"
74+
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:main
7475
fi
7576

7677
- name: Build frontend

0 commit comments

Comments
 (0)