Optimize workflow runs with concurrency settings (#23811)
* Add concurrency settings for a bunch of workflows * Restrict prod deployments to one at a time but disallow interrupting * Remove redundant pull_request.types specification
This commit is contained in:
5
.github/workflows/openapi-schema-check.yml
vendored
5
.github/workflows/openapi-schema-check.yml
vendored
@@ -26,6 +26,11 @@ on:
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
# This allows a subsequently queued workflow run to interrupt previous runs
|
||||
concurrency:
|
||||
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
check-schema-versions:
|
||||
if: ${{ github.repository == 'github/docs-internal' }}
|
||||
|
||||
Reference in New Issue
Block a user