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 7, 2023
1 parent 2445faf commit 18357e8
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
jobs:
check-spdx-headers:
runs-on: ubuntu-latest

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

steps:

- name: Checkout code
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/check_push_rights.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ 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
13 changes: 13 additions & 0 deletions .github/workflows/kuksa_csv_provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,18 @@ jobs:
uses: ./.github/workflows/check_push_rights.yml
secrets: inherit

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

run-csv-provider-tests:
name: "Run csv provider linter"
runs-on: ubuntu-latest

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-run-csv-provider-tests
cancel-in-progress: true

steps:
- name: Checkout Repository
uses: actions/checkout@v3
Expand All @@ -52,6 +60,11 @@ jobs:
runs-on: self-hosted
needs: checkrights

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-build-csv-provider-image
cancel-in-progress: true


steps:
- name: Checkout Repository
uses: actions/checkout@v3
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/kuksa_dbc_feeder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,19 @@ jobs:
uses: ./.github/workflows/check_push_rights.yml
secrets: inherit

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

build-can-feeder-image:
name: "Build dbc provider image"
runs-on: self-hosted
needs: checkrights

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-build-can-feeder-image
cancel-in-progress: true

steps:
- name: Checkout Repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -108,6 +116,10 @@ jobs:
name: "Run dbc provider test"
runs-on: ubuntu-latest

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-run-dbc-provider-tests
cancel-in-progress: true

steps:
- name: Checkout Repository
uses: actions/checkout@v3
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 @@ -27,6 +27,10 @@ jobs:
name: "Check DDS feeder"
runs-on: ubuntu-latest

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

steps:
- name: Checkout Repository
uses: actions/checkout@v3
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/kuksa_gps_feeder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,19 @@ jobs:
uses: ./.github/workflows/check_push_rights.yml
secrets: inherit

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

build-self-hosted:
if: ${{ github.repository_owner == 'eclipse' }}
runs-on: [ self-hosted ]
needs: checkrights

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

# With default permissions, release action fails on forks
permissions:
contents: read
Expand Down Expand Up @@ -110,6 +118,10 @@ jobs:
runs-on: ubuntu-latest
needs: checkrights

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

# With default permissions, release action fails on forks
permissions:
contents: read
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on: [pull_request]
jobs:
pre-commit:
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v3
with:
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/someip2val_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ jobs:
uses: ./.github/workflows/check_push_rights.yml
secrets: inherit

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

build:
name: Build Binaries
# build if explicitly requested or merging to main
Expand All @@ -45,6 +49,10 @@ jobs:
target-arch: [x86_64, aarch64]
fail-fast: true

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

steps:
- name: Install Pre-requisities
run: |
Expand Down Expand Up @@ -77,6 +85,11 @@ jobs:
name: Build Docker
needs: checkrights

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


steps:

- name: Check Setup
Expand Down

0 comments on commit 18357e8

Please sign in to comment.