devops: cancel primary_tests workflow jobs for stale PR commits (#13018)

This commit is contained in:
Andrey Lushnikov 2022-03-23 18:16:32 -06:00 committed by GitHub
parent 418dc9ea5d
commit 174225697a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,12 @@ on:
- main
- release-*
concurrency:
# For pull requests, cancel all currently-running jobs for this workflow
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
# Force terminal colors. @see https://www.npmjs.com/package/colors
FORCE_COLOR: 1