Skip to content

Commit

Permalink
GHA: Introduce concurrency.cancel-in-progress
Browse files Browse the repository at this point in the history
Some of the workflows do not consider `cancel-in-progress`.
As mentioned in #576, it is not an optimal use of resources
to keep running existing actions upon PR updates.

This commit introduces the concurrency concept to them.

Signed-off-by: Hyounggyu Choi <[email protected]>
  • Loading branch information
BbolroC committed Aug 2, 2024
1 parent 223044f commit c351d32
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/aa_cc_kbc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
create:
workflow_dispatch:

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

jobs:
cc_kbc_ci:
name: Check
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/aa_crypto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
create:
workflow_dispatch:

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

jobs:
crypto_ci:
name: Check
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/aa_eaa_kbc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
create:
workflow_dispatch:

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

jobs:
eaa_kbc_ci:
name: Check
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/aa_sample_keyprovider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
create:
workflow_dispatch:

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

jobs:
coco_keyprovider_ci:
name: Check
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/aa_sev_kbc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
create:
workflow_dispatch:

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

jobs:
offline_sev_kbc_ci:
name: Check
Expand Down

0 comments on commit c351d32

Please sign in to comment.