Skip to content

Commit

Permalink
template: Cancel previous workflows for main as well
Browse files Browse the repository at this point in the history
We build and push everything from scratch so it's mostly safe to cancel
in progress workflow for main and that should reduce the amount of
wasted builds. We can revisit that once we improve our CI story again.
  • Loading branch information
travier committed Nov 14, 2024
1 parent 7a550e5 commit 2b06458
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 24 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/containers-fedora-coreos-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ on:
permissions: read-all

# Prevent multiple workflow runs from racing to ensure that pushes are made
# sequentialy for the main branch. Also cancel in progress workflow runs for
# pull requests only.
# sequentialy for the main branch. Also cancel in progress workflow runs.
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}-${{ inputs.sysext }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
build:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/containers-fedora-kinoite-41.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ on:
permissions: read-all

# Prevent multiple workflow runs from racing to ensure that pushes are made
# sequentialy for the main branch. Also cancel in progress workflow runs for
# pull requests only.
# sequentialy for the main branch. Also cancel in progress workflow runs.
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}-${{ inputs.sysext }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
build:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/containers-fedora-silverblue-41.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ on:
permissions: read-all

# Prevent multiple workflow runs from racing to ensure that pushes are made
# sequentialy for the main branch. Also cancel in progress workflow runs for
# pull requests only.
# sequentialy for the main branch. Also cancel in progress workflow runs.
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}-${{ inputs.sysext }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
build:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/sysexts-fedora-coreos-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ permissions:
contents: write

# Prevent multiple workflow runs from racing to ensure that pushes are made
# sequentialy for the main branch. Also cancel in progress workflow runs for
# pull requests only.
# sequentialy for the main branch. Also cancel in progress workflow runs.
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}-${{ inputs.sysext }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
build:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/sysexts-fedora-kinoite-41.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ permissions:
contents: write

# Prevent multiple workflow runs from racing to ensure that pushes are made
# sequentialy for the main branch. Also cancel in progress workflow runs for
# pull requests only.
# sequentialy for the main branch. Also cancel in progress workflow runs.
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}-${{ inputs.sysext }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
build:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/sysexts-fedora-silverblue-41.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ permissions:
contents: write

# Prevent multiple workflow runs from racing to ensure that pushes are made
# sequentialy for the main branch. Also cancel in progress workflow runs for
# pull requests only.
# sequentialy for the main branch. Also cancel in progress workflow runs.
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}-${{ inputs.sysext }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
build:
Expand Down
4 changes: 1 addition & 3 deletions templates/containers_header
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ on:
permissions: read-all

# Prevent multiple workflow runs from racing to ensure that pushes are made
# sequentialy for the main branch. Also cancel in progress workflow runs for
# pull requests only.
# sequentialy for the main branch. Also cancel in progress workflow runs.
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}-${{ inputs.sysext }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
build:
Expand Down
4 changes: 1 addition & 3 deletions templates/sysexts_header
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ permissions:
contents: write

# Prevent multiple workflow runs from racing to ensure that pushes are made
# sequentialy for the main branch. Also cancel in progress workflow runs for
# pull requests only.
# sequentialy for the main branch. Also cancel in progress workflow runs.
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}-${{ inputs.sysext }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
build:
Expand Down

0 comments on commit 2b06458

Please sign in to comment.