From a8cb306f881f3f23cdba62a15d511d19aac8c049 Mon Sep 17 00:00:00 2001 From: mandalore Date: Tue, 22 Sep 2026 16:34:24 -0500 Subject: [PATCH] Push ELO refresh with the PAT so it triggers the 40k deploy actions/checkout persists GITEA_TOKEN as an http.extraheader, which takes precedence over the token in the remote URL. Gitea doesn't fire workflows for pushes made with GITEA_TOKEN, so the refreshed data never deployed. Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/refresh-elo.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitea/workflows/refresh-elo.yml b/.gitea/workflows/refresh-elo.yml index 48510ea..e81177d 100644 --- a/.gitea/workflows/refresh-elo.yml +++ b/.gitea/workflows/refresh-elo.yml @@ -13,6 +13,10 @@ jobs: runs-on: host steps: - uses: actions/checkout@v4 + with: + # Otherwise checkout's GITEA_TOKEN auth header overrides the PAT in the + # push URL, and Gitea won't trigger the deploy for a bot-token push. + persist-credentials: false - name: Refresh ELO data working-directory: sites/40k-rankings/statcheck-elo-scraper run: python3 refresh_elo.py