ci(runner): skip reports for cancelled campaigns

This commit is contained in:
Dotta 2026-09-03 08:22:02 -05:00
parent 785e51372d
commit 41a96da703
2 changed files with 4 additions and 1 deletions

View File

@ -669,7 +669,7 @@ jobs:
report:
name: Merge and enforce campaign result
if: always() && needs.catalog.result == 'success'
if: always() && !cancelled() && needs.catalog.result == 'success'
needs: [catalog, daytona_image, test]
outputs:
history_source_ready: ${{ steps.history_source_ready.outputs.ready }}

View File

@ -93,6 +93,9 @@ describe("public repository paid workflow security", () => {
expect(fullStack).toContain(
"cancel-in-progress: ${{ github.ref != format('refs/heads/{0}', github.event.repository.default_branch) }}",
);
expect(fullStack).toContain(
"if: always() && !cancelled() && needs.catalog.result == 'success'",
);
for (const [secret, condition] of Object.entries({
OPENAI_API_KEY: "matrix.credentialName == 'OPENAI_API_KEY'",
ANTHROPIC_API_KEY: "matrix.credentialName == 'ANTHROPIC_API_KEY'",