Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
Add cancel-in-progress
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbosch committed Sep 12, 2023
1 parent b929265 commit 4843e9a
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ name: spdx
on:
pull_request

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
check-spdx-headers:
runs-on: ubuntu-latest

steps:

- name: Checkout code
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/check_push_rights.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,19 @@ on:
description: "In possession of ghcr.io tokens?"
value: ${{ jobs.check_push_rights.outputs.have_secrets }}


# No concurrency group or cancel-in-progress here as this workflow is called from other workflows
# so if you have a concurrency definition here it will be considered as a deadlock and job dismissed
# The job below is also very fast, so no real need for cancel-in-progress

jobs:
check_push_rights:
runs-on: ubuntu-latest

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-check_push_rights
cancel-in-progress: true

outputs:
have_secrets: ${{ steps.check-secrets.outputs.have_secrets }}

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/kuksa_csv_provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ on:
- "csv_provider/**"
workflow_dispatch:

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
checkrights:
uses: ./.github/workflows/check_push_rights.yml
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/kuksa_dbc_feeder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ on:
- "dbc2val/**"
workflow_dispatch:

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
checkrights:
uses: ./.github/workflows/check_push_rights.yml
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/kuksa_dds_feeder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ on:
- "dds2val/**"
workflow_dispatch:

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
check-dds-feeder:
name: "Check DDS feeder"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/kuksa_gps_feeder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
- "gps2val/**"
workflow_dispatch:

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

env:
EPHEMERAL_IMAGE: "ttl.sh/kuksa.val.feeders/gps-${{ github.sha }}"

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ name: pre-commit

on: [pull_request]

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true


jobs:
pre-commit:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/someip2val_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ on:
required: false
default: 'false'

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:

checkrights:
Expand Down

0 comments on commit 4843e9a

Please sign in to comment.