From c8bd8e8a2bc9c8db3396054f24f5c7a5cd89f4b9 Mon Sep 17 00:00:00 2001 From: Jesse_Chen Date: Thu, 13 Aug 2026 12:43:18 +0800 Subject: [PATCH] fix(ci): provide Gitea context to deploy dispatch --- .gitea/workflows/backend-quality-gate.yml | 2 ++ frontend/tests/staging-backend-workflows.test.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.gitea/workflows/backend-quality-gate.yml b/.gitea/workflows/backend-quality-gate.yml index a9343b0c..fa643207 100644 --- a/.gitea/workflows/backend-quality-gate.yml +++ b/.gitea/workflows/backend-quality-gate.yml @@ -233,6 +233,8 @@ jobs: env: GITEA_SHA: ${{ gitea.sha }} GITEA_RUN_ATTEMPT: ${{ gitea.run_attempt }} + GITEA_API_URL: ${{ gitea.api_url }} + GITEA_REPOSITORY: ${{ gitea.repository }} 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 diff --git a/frontend/tests/staging-backend-workflows.test.ts b/frontend/tests/staging-backend-workflows.test.ts index d6403f07..896ba5be 100644 --- a/frontend/tests/staging-backend-workflows.test.ts +++ b/frontend/tests/staging-backend-workflows.test.ts @@ -606,6 +606,8 @@ 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_API_URL: \$\{\{ gitea\.api_url \}\}/); + assert.match(quality, /GITEA_REPOSITORY: \$\{\{ gitea\.repository \}\}/); 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/);