Skip to content

Commit

Permalink
Add concurrency control to build-docs workflow
Browse files Browse the repository at this point in the history
This commit introduces concurrency control to the GitHub Actions build-docs workflow. Now, only one workflow will run at a time for a given branch, with new runs automatically cancelling in-progress runs. This can prevent unnecessary computing resources usage and ensure the workflow reflects the latest repository state.
  • Loading branch information
jacobrein committed May 3, 2024
1 parent 046cdab commit 1a69515
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ env:
CONFIG_JSON_PRODUCT: 'HI'
CONFIG_JSON_VERSION: '1.0'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 1a69515

Please sign in to comment.