Add concurrency limits on all workflows to eliminate wasted cycles (#2603)

This commit is contained in:
Bassem Dghaidi
2023-05-18 10:55:03 +02:00
committed by GitHub
parent 44e9b7d8eb
commit 34fdbf1231
11 changed files with 63 additions and 1 deletions

View File

@@ -18,6 +18,13 @@ on:
permissions:
contents: read
concurrency:
# This will make sure we only apply the concurrency limits on pull requests
# but not pushes to master branch by making the concurrency group name unique
# for pushes
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
fmt:
runs-on: ubuntu-latest