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: 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:

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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: