Skip to content

Commit

Permalink
chore: Enable concuncurrency in PR workflows to skip unnecessary exec…
Browse files Browse the repository at this point in the history
…utions (kedacore#5034)

Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
  • Loading branch information
JorTurFer authored Oct 2, 2023
1 parent a1371aa commit db225fe
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
env:
fossa-key: 9e722f2c8904586d61f97f0bf05a99e4 # This is a public key only for pushing, it's safe here

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

jobs:
build:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pr-e2e-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ env:
SKIP_E2E_TAG: skip-e2e
E2E_CHECK_NAME: e2e tests

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

jobs:
e2e-checker:
name: label checker
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pr-e2e-creator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ env:
SKIP_E2E_TAG: skip-e2e
E2E_CHECK_NAME: e2e tests

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

jobs:
check-creator:
name: check-creator
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: CI
on:
- pull_request

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

jobs:
validate:
name: validate - ${{ matrix.name }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/static-analysis-codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches: [ "main" ]
pull_request: {}

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

jobs:
codeQl:
name: Analyze CodeQL Go
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/static-analysis-semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches: [ "main" ]
pull_request_target: {}

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

jobs:
semgrep:
name: Analyze Semgrep
Expand Down

0 comments on commit db225fe

Please sign in to comment.