Skip to content

Commit

Permalink
fix(ci): new PR comments cancel ongoing ephemeral builds (apache#27085)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgaspar authored Feb 12, 2024
1 parent 6c5e8fa commit 16e49cb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ephemeral-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
issue_comment:
types: [created]

# cancel previous workflow jobs for PRs
concurrency:
group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}
cancel-in-progress: true

jobs:
config:
runs-on: "ubuntu-latest"
Expand All @@ -25,6 +20,9 @@ jobs:
fi
ephemeral-env-comment:
concurrency:
group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}-comment
cancel-in-progress: true
needs: config
if: needs.config.outputs.has-secrets
name: Evaluate ephemeral env comment trigger (/testenv)
Expand Down Expand Up @@ -85,6 +83,9 @@ jobs:
core.setFailed(errMsg)
ephemeral-docker-build:
concurrency:
group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}-build
cancel-in-progress: true
needs: ephemeral-env-comment
name: ephemeral-docker-build
runs-on: ubuntu-latest
Expand Down

0 comments on commit 16e49cb

Please sign in to comment.