Cancel GitHub workflows that run in // on same branch/PR
DELETE
.github/workflows/greetings.yml
-name: Greetings
-on: [pull_request, issues]
-jobs:
- greeting:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/first-interaction@v1
- with:
- repo-token: ${{ secrets.GITHUB_TOKEN }}
- issue-message: 'Welcome to your first issue in e-Mobility software'
- pr-message: 'Welcome to your first PR in e-Mobility software'

MODIFY
.github/workflows/lint.yml
.github/workflows/lint.yml
@@ -10,6 +10,9 @@ on:
jobs:
lint:
runs-on: ubuntu-latest
+ concurrency:
+ group: ${{ github.head_ref || github.ref_name }}
+ cancel-in-progress: true
strategy:
matrix:
node-version: [16.x]

MODIFY
.github/workflows/unit-tests.yml
.github/workflows/unit-tests.yml
@@ -12,6 +12,9 @@ on:
jobs:
unit-tests-submodules:
runs-on: ubuntu-latest
+ concurrency:
+ group: ${{ github.head_ref || github.ref_name }}
+ cancel-in-progress: true
strategy:
matrix:
node-version: [16.x]

Cancel GitHub workflows that run in // on same branch/PR