Skip to content

Commit d673824

Browse files
dpgasparsfirke
authored andcommitted
fix(ci): new PR comments cancel ongoing ephemeral builds (apache#27085)
1 parent 520e778 commit d673824

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/ephemeral-env.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ on:
44
issue_comment:
55
types: [created]
66

7-
# cancel previous workflow jobs for PRs
8-
concurrency:
9-
group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}
10-
cancel-in-progress: true
11-
127
jobs:
138
config:
149
runs-on: "ubuntu-latest"
@@ -25,6 +20,9 @@ jobs:
2520
fi
2621
2722
ephemeral-env-comment:
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}-comment
25+
cancel-in-progress: true
2826
needs: config
2927
if: needs.config.outputs.has-secrets
3028
name: Evaluate ephemeral env comment trigger (/testenv)
@@ -85,6 +83,9 @@ jobs:
8583
core.setFailed(errMsg)
8684
8785
ephemeral-docker-build:
86+
concurrency:
87+
group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}-build
88+
cancel-in-progress: true
8889
needs: ephemeral-env-comment
8990
name: ephemeral-docker-build
9091
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)