Abort CodeQL runs on new pushes to a pull-request's branch (#13241)
This commit is contained in:
parent
8470a30446
commit
2a926f3e61
5 changed files with 22 additions and 9 deletions
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
@ -3,10 +3,8 @@ name: Keycloak CI
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches-ignore: [main]
|
branches-ignore: [main]
|
||||||
pull_request:
|
# as the ci.yml contains actions that are required for PRs to be merged, it will always need to run on all PRs
|
||||||
paths-ignore:
|
pull_request: {}
|
||||||
- '.github/workflows/**'
|
|
||||||
- '!.github/workflows/ci.yml'
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * *'
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
|
@ -15,7 +13,7 @@ env:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
# Only run once for latest commit per ref and cancel other (previous) runs.
|
# Only run once for latest commit per ref and cancel other (previous) runs.
|
||||||
group: ci-keycloak-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
7
.github/workflows/codeql-java-analysis.yml
vendored
7
.github/workflows/codeql-java-analysis.yml
vendored
|
@ -17,7 +17,12 @@ on:
|
||||||
- '.github/workflows/codeql-java-analysis.yml'
|
- '.github/workflows/codeql-java-analysis.yml'
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 9 * * 2'
|
- cron: '0 9 * * 2'
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
# Only run once for latest commit per ref and cancel other (previous) runs.
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
name: CodeQL analyze
|
name: CodeQL analyze
|
||||||
|
|
|
@ -17,7 +17,12 @@ on:
|
||||||
- '.github/workflows/codeql-js-adapter-analysis.yml'
|
- '.github/workflows/codeql-js-adapter-analysis.yml'
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 9 * * 2'
|
- cron: '0 9 * * 2'
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
# Only run once for latest commit per ref and cancel other (previous) runs.
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
name: CodeQL analyze
|
name: CodeQL analyze
|
||||||
|
|
7
.github/workflows/codeql-theme-analysis.yml
vendored
7
.github/workflows/codeql-theme-analysis.yml
vendored
|
@ -17,7 +17,12 @@ on:
|
||||||
- '.github/workflows/codeql-theme-analysis.yml'
|
- '.github/workflows/codeql-theme-analysis.yml'
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 9 * * 2'
|
- cron: '0 9 * * 2'
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
# Only run once for latest commit per ref and cancel other (previous) runs.
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
name: CodeQL analyze
|
name: CodeQL analyze
|
||||||
|
|
2
.github/workflows/operator-ci.yml
vendored
2
.github/workflows/operator-ci.yml
vendored
|
@ -17,7 +17,7 @@ env:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
# Only run once for latest commit per ref and cancel other (previous) runs.
|
# Only run once for latest commit per ref and cancel other (previous) runs.
|
||||||
group: ci-operator-keycloak-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
Loading…
Reference in a new issue