ci: fix secret name for github mirror sync
All checks were successful
sync-to-github / sync (push) Successful in 16s
All checks were successful
sync-to-github / sync (push) Successful in 16s
GITHUB_MIRROR_TOKEN was rejected by Forgejo (GITHUB_ prefix is reserved). Renamed to GH_MIRROR_TOKEN and created the secret. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
93d0e94615
commit
843e732dcf
1 changed files with 3 additions and 3 deletions
|
|
@ -29,9 +29,9 @@ jobs:
|
|||
|
||||
- name: Push to GitHub
|
||||
env:
|
||||
GITHUB_MIRROR_TOKEN: ${{ secrets.GITHUB_MIRROR_TOKEN }}
|
||||
GH_MIRROR_TOKEN: ${{ secrets.GH_MIRROR_TOKEN }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git remote add github-mirror "https://Traceworks2023:${GITHUB_MIRROR_TOKEN}@github.com/Traceworks2023/nxtgauge-gitops.git" 2>/dev/null || \
|
||||
git remote set-url github-mirror "https://Traceworks2023:${GITHUB_MIRROR_TOKEN}@github.com/Traceworks2023/nxtgauge-gitops.git"
|
||||
git remote add github-mirror "https://Traceworks2023:${GH_MIRROR_TOKEN}@github.com/Traceworks2023/nxtgauge-gitops.git" 2>/dev/null || \
|
||||
git remote set-url github-mirror "https://Traceworks2023:${GH_MIRROR_TOKEN}@github.com/Traceworks2023/nxtgauge-gitops.git"
|
||||
git push github-mirror "HEAD:main"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue