Skip to content

Commit

Permalink
added concurrency limit to stop double runs
Browse files Browse the repository at this point in the history
this way if a new commit is pushed the old action will be stopped. It will only happen in PRs and not in the master branch
  • Loading branch information
Bullrich committed Aug 19, 2024
1 parent b1c854e commit f6fdd4d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
types: [opened, synchronize, reopened, ready_for_review, labeled]
merge_group:

concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

jobs:
set-image:
# GitHub Actions allows using 'env' in a container context.
Expand Down

0 comments on commit f6fdd4d

Please sign in to comment.