Skip to content

Commit

Permalink
Add concurrency setting to prevent multiple actions on the same branch
Browse files Browse the repository at this point in the history
Since CodeSee actions take a while to run, we should check to see if there is an action instance running on a branch and cancel it if a new commit comes in.
  • Loading branch information
dancrumb authored Jan 11, 2024
1 parent 4f66933 commit f383b00
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ A [composite GitHub action](https://docs.github.com/en/actions/creating-actions/
types: [opened, synchronize, reopened]

name: CodeSee
concurrency:
group: ${{ github.head_ref || github.run_id}}
cancel-in-progress: true

permissions: read-all

Expand Down

0 comments on commit f383b00

Please sign in to comment.