From 1887b98ce20d0a58758b973186622a02ad66193d Mon Sep 17 00:00:00 2001 From: Daniel Gaspar Date: Mon, 12 Feb 2024 16:23:55 +0000 Subject: [PATCH] fix(ci): new PR comments cancel ongoing ephemeral builds --- .github/workflows/ephemeral-env.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ephemeral-env.yml b/.github/workflows/ephemeral-env.yml index 8f804f741ce9d..a48f8eb6aa892 100644 --- a/.github/workflows/ephemeral-env.yml +++ b/.github/workflows/ephemeral-env.yml @@ -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" @@ -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) @@ -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