From caee8bba1142eca8116c57a2cb7b5beca56eb87c Mon Sep 17 00:00:00 2001 From: rob thijssen Date: Wed, 15 Apr 2026 16:31:13 +0300 Subject: [PATCH] fix(ci): use GITEA_TOKEN env var for push, not checkout Token is only needed for the authenticated push, not the public checkout. Set remote URL with token inline before pushing. Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 5e7e147..3a5e4cf 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -172,10 +172,10 @@ jobs: needs: [copr-cortex, copr-neuron] steps: - uses: actions/checkout@v4 - with: - token: ${{ secrets.GITEA_TOKEN }} - name: Stamp version and push + env: + GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} run: | VERSION="${GITHUB_REF#refs/tags/v}" sed -i '/\[workspace\.package\]/,/\[/{ s/^version = ".*"/version = "'"${VERSION}"'"/ }' Cargo.toml @@ -189,5 +189,6 @@ jobs: echo "Version already at ${VERSION}" else git commit -m "chore: bump version to ${VERSION}" + git remote set-url origin "https://gitea-actions:${GITEA_TOKEN}@git.lair.cafe/helexa/cortex.git" git push origin HEAD:main fi