fix(ci): inject token for staging deploy dispatch
Staging Backend Quality Gate / validate (push) Successful in 12m40s
Staging Backend Quality Gate / publish (push) Failing after 2m5s

This commit is contained in:
Jesse_Chen
2026-08-13 12:23:13 +08:00
parent 013c15a9e9
commit 945f8974d4
2 changed files with 2 additions and 0 deletions
@@ -233,6 +233,7 @@ jobs:
env:
GITEA_SHA: ${{ gitea.sha }}
GITEA_RUN_ATTEMPT: ${{ gitea.run_attempt }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
REGISTRY_HOST: crpi-d1feco6itet73spp.cn-hongkong.personal.cr.aliyuncs.com
IMAGE_REPOSITORY: crpi-d1feco6itet73spp.cn-hongkong.personal.cr.aliyuncs.com/copse/jyotisha
steps:
@@ -606,6 +606,7 @@ test("Gitea staging deployment is dispatched from staging after the exact push g
assert.match(workflow, /WEB_IMAGE: \$\{\{ steps\.images\.outputs\.web_image \}\}/);
assert.match(quality, /Dispatch exact-SHA staging deployment/);
assert.match(quality, /GITEA_TOKEN: \$\{\{ secrets\.GITEA_TOKEN \}\}/);
assert.match(quality, /staging advanced before deployment dispatch; refusing stale release/);
assert.match(quality, /actions\/workflows\/deploy-staging\.yml\/dispatches\?return_run_details=true/);
assert.match(quality, /--arg ref "refs\/heads\/staging"/);