ci: stop inprogress jobs when pr is updated
stop the in progress jobs when a PR is updated Ref: https://docs.github.com/en/actions/using-workflows/ \ workflow-syntax-for-github-actions# \ example-using-concurrency-to-cancel-any-in-progress-job-or-run example job is here https://core.trac.wordpress.org/changeset/50930 Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
1 parent
a04f7ecb90
commit
4a26d389b7
19 files changed
+95
No files matched your search
@@ -11,6 +11,11 @@ on:
|
||||
- master
|
||||
- release-*
|
||||
|
||||
# cancel the in-progress workflow when PR is refreshed.
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-18.04
|
||||
|
||||
Reference in new issue
Block a user