From c1c2094b771e36e3568eba693e5f09ae7b5c04bf Mon Sep 17 00:00:00 2001 From: Jesse_Chen Date: Thu, 6 Aug 2026 01:38:36 +0800 Subject: [PATCH] Fix local artifact action inputs --- .gitea/workflows/backend-quality-gate.yml | 10 ++++++++++ frontend/tests/staging-backend-workflows.test.ts | 3 +++ 2 files changed, 13 insertions(+) diff --git a/.gitea/workflows/backend-quality-gate.yml b/.gitea/workflows/backend-quality-gate.yml index 9f25096c..982bd361 100644 --- a/.gitea/workflows/backend-quality-gate.yml +++ b/.gitea/workflows/backend-quality-gate.yml @@ -270,6 +270,16 @@ jobs: - name: Upload immutable staging image manifest uses: ./.gitea/actions/upload-artifact + # act_runner 0.6.1 resolves local Node actions but does not export their + # `with` values as INPUT_* variables. Keep `with` for newer runners and + # provide the same variables explicitly for the current staging runner. + env: + INPUT_NAME: staging-image-manifest-${{ gitea.sha }}-${{ gitea.run_attempt }} + INPUT_PATH: artifacts/staging-images/manifest.env + 'INPUT_IF-NO-FILES-FOUND': error + 'INPUT_RETENTION-DAYS': '30' + 'INPUT_COMPRESSION-LEVEL': '6' + INPUT_OVERWRITE: 'false' with: name: staging-image-manifest-${{ gitea.sha }}-${{ gitea.run_attempt }} path: artifacts/staging-images/manifest.env diff --git a/frontend/tests/staging-backend-workflows.test.ts b/frontend/tests/staging-backend-workflows.test.ts index 9c9afc56..5133a5eb 100644 --- a/frontend/tests/staging-backend-workflows.test.ts +++ b/frontend/tests/staging-backend-workflows.test.ts @@ -210,6 +210,9 @@ test("Gitea quality gate validates before publishing an immutable ACR manifest", assert.match(workflow, /get\("architecture"\)=="amd64"/); assert.match(workflow, /node frontend\/scripts\/staging-image-manifest\.mjs/); assert.match(workflow, /uses: \.\/\.gitea\/actions\/upload-artifact/); + assert.match(workflow, /INPUT_PATH: artifacts\/staging-images\/manifest\.env/); + assert.match(workflow, /['"]INPUT_IF-NO-FILES-FOUND['"]: error/); + assert.match(workflow, /INPUT_OVERWRITE: ['"]false['"]/); assert.match(read(giteaUploadArtifactAction), /main: ['"]dist\/index\.js['"]/); assert.match(read(giteaUploadArtifactAction), /81f940d004763f986ba3582c007fd842dd5cb0d7/); assert.ok(existsSync(fileURLToPath(giteaUploadArtifactEntrypoint)));