Abort CodeQL runs on new pushes to a pull-request's branch (#13241)

This commit is contained in:
Alexander Schwartz 2022-07-28 20:30:05 +02:00 committed by GitHub
parent 8470a30446
commit 2a926f3e61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 9 deletions

View file

@ -3,10 +3,8 @@ name: Keycloak CI
on:
push:
branches-ignore: [main]
pull_request:
paths-ignore:
- '.github/workflows/**'
- '!.github/workflows/ci.yml'
# as the ci.yml contains actions that are required for PRs to be merged, it will always need to run on all PRs
pull_request: {}
schedule:
- cron: '0 0 * * *'
@ -15,7 +13,7 @@ env:
concurrency:
# 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
jobs:

View file

@ -18,6 +18,11 @@ on:
schedule:
- 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:
analyze:
name: CodeQL analyze

View file

@ -18,6 +18,11 @@ on:
schedule:
- 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:
analyze:
name: CodeQL analyze

View file

@ -18,6 +18,11 @@ on:
schedule:
- 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:
analyze:
name: CodeQL analyze

View file

@ -17,7 +17,7 @@ env:
concurrency:
# 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
jobs: