Skip to content

Commit

Permalink
Merge pull request #415 from iranzo/concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
iranzo authored Jun 15, 2022
2 parents f76471f + 33b3315 commit 8c4ae6f
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-and-push-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Build and Publish
on:
push:
branches: [main]
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build-and-push-container-images:
name: Build Container images and push to repositories
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-and-push-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
types:
- published

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
build-and-push-container-images:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci-test-ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ on:
required: false
type: string

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:

ansible-test-ci:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ on:
schedule:
- cron: '18 12 * * 1'

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
analyze:
name: Analyze
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
schedule:
- cron: '0 0 * * *'

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
jekyll:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/needs-rebase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
pull_request_target:
types: [synchronize]

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
main:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
release:
name: release
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/size.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
pull_request_target:
types: [opened, synchronize]

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
update_labels:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/testing-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
# types: [labeled]
workflow_dispatch:

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
build-and-push-docker-image:
if: (!contains(github.event.label.name, 'skip-ci') && !contains(github.event.pull_request.labels.*.name, 'skip-ci')) || github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'test-ci')
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
pull_request_review:
types: [submitted, edited]

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
build:
if: (!contains(github.event.label.name, 'skip-ci-ui') || github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'test-ci-ui')
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/update_semver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
types:
- published

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
update-semver:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8c4ae6f

Please sign in to comment.