fix: use PAT to bypass branch protection in downloads chart workflow

This commit is contained in:
MinaSaad1 2026-04-12 12:28:37 +02:00
parent 6642cf12d2
commit 3c6261dc9b

View file

@ -14,6 +14,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
with:
token: ${{ secrets.PAT }}
- uses: actions/setup-python@v6 - uses: actions/setup-python@v6
with: with:
@ -22,7 +24,7 @@ jobs:
- name: Regenerate cumulative downloads chart - name: Regenerate cumulative downloads chart
run: python scripts/generate_downloads_chart.py run: python scripts/generate_downloads_chart.py
- name: Commit updated chart - name: Commit and push updated chart
run: | run: |
if git diff --quiet assets/downloads-chart.svg; then if git diff --quiet assets/downloads-chart.svg; then
echo "No changes to downloads chart." echo "No changes to downloads chart."