Add CI_JOB_TOKEN to release pipeline

This commit is contained in:
Chris Hunt 2026-04-16 13:21:41 +01:00
parent eb0218f612
commit cc5e786633
No known key found for this signature in database

View file

@ -24,7 +24,7 @@ update_list_json:
mv list.json.tmp list.json
git config user.email "ci@gitlab"
git config user.name "GitLab CI"
git remote set-url origin "https://gitlab-ci-token:${CI_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git"
git remote set-url origin "https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git"
git add list.json
if ! git diff --cached --quiet; then
git commit -m "chore: update list.json from registry [skip ci]"