ci(runner): skip reports for cancelled campaigns
This commit is contained in:
parent
785e51372d
commit
41a96da703
|
|
@ -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 }}
|
||||
|
|
|
|||
|
|
@ -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'",
|
||||
|
|
|
|||
Loading…
Reference in New Issue