Skip to content

Commit

Permalink
Update github workflows PR runs
Browse files Browse the repository at this point in the history
Update all the PR-triggered workflows so they cancel previous action jobs for the same PR when a new change is pushed
  • Loading branch information
Vincent056 committed Mar 4, 2024
1 parent c0135ba commit 5b9fb2f
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/automatus-cs8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Automatus CS8
on:
pull_request:
branches: [ master, 'stabilization*' ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.run_id }}
cancel-in-progress: true
env:
DATASTREAM: ssg-centos8-ds.xml
jobs:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/automatus-cs9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Automatus CS9
on:
pull_request:
branches: [ master, 'stabilization*' ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.run_id }}
cancel-in-progress: true
env:
DATASTREAM: ssg-cs9-ds.xml
jobs:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/automatus-sanity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Automatus Sanity
on:
pull_request:
branches: [ master, 'stabilization*' ]

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.run_id }}
cancel-in-progress: true
env:
DATASTREAM: ssg-fedora-ds.xml
jobs:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/automatus-sle15.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Automatus SLE15
on:
pull_request:
branches: [ master, 'stabilization*' ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.run_id }}
cancel-in-progress: true
env:
DATASTREAM: ssg-sle15-ds.xml
jobs:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/automatus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Automatus Fedora
on:
pull_request:
branches: [ master, 'stabilization*' ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.run_id }}
cancel-in-progress: true
jobs:
build-content:
name: Build Content
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/gate-lint-ansible-roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Gate (AR / RHEL)
on:
pull_request:
branches: [ 'master' ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.run_id }}
cancel-in-progress: true
jobs:
validate-fedora-ar:
name: Build, Lint Ansible Roles on Fedora Latest (Container)
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/gate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches: ['*', '!stabilization*', '!stable*', '!master' ]
pull_request:
branches: [ 'master', 'stabilization*' ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.run_id }}
cancel-in-progress: true
jobs:
validate-centos7:
name: Build, Test on CentOS 7 (Container)
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/gate_fedora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches: ['*', '!stabilization*', '!stable*', 'master' ]
pull_request:
branches: [ 'master', 'stabilization*' ]
concurrency:
group: ${{ github.workflow }}-fedora-${{ github.event.number || github.run_id }}
cancel-in-progress: true
jobs:
validate-fedora:
name: Build, Test on Fedora Latest (Container)
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches: [ 'master' ]
merge_group:
branches: [ 'master' ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.run_id }}
cancel-in-progress: true
jobs:
publish:
name: Publish stats, tables and guides
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/k8s-content-pr-trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
- reopened
- synchronize

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.run_id }}
cancel-in-progress: true

jobs:
get-pr-number:
name: Get PR number
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/srg-mapping-table.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches: [ 'master', 'stabilization*' ]
merge_group:
branches: [ 'master' ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.run_id }}
cancel-in-progress: true
jobs:
generate-data:
name: SRG Mapping Table
Expand Down

0 comments on commit 5b9fb2f

Please sign in to comment.