Skip to content

Commit

Permalink
[TASK] Prevent multiple GitHub action executions on pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
IchHabRecht committed Sep 7, 2024
1 parent fb45bc6 commit f133975
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
- premerge/*
- pre-merge

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

jobs:
compute:
uses: ./.github/workflows/compute.yml
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: 🏃 dev tests

on: [ push, pull_request ]

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

jobs:
compute:
uses: ./.github/workflows/compute.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: 🏃 tests
on: [ push, pull_request, workflow_call ]

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

jobs:
Expand Down

0 comments on commit f133975

Please sign in to comment.