Skip to content

Commit

Permalink
Update concurrency tag
Browse files Browse the repository at this point in the history
This change fixes an issue where adding a label to one
PR cancels in progress jobs in a different PR.

b/320616679
  • Loading branch information
isarkis committed Jan 17, 2024
1 parent c40dd35 commit 577c459
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ env:
STARBOARD_TOOLCHAINS_DIR: /root/starboard-toolchains

concurrency:
group: '${{ github.workflow }}-${{ github.event_name }}-${{ inputs.platform }} @ ${{ github.event.label.name || github.event.pull_request.number || github.sha }}'
group: ${{ github.workflow }}-${{ github.event_name }}-${{ inputs.platform }} @ ${{ github.event.label.name || github.event.pull_request.number || github.sha }} @ ${{ github.event.label.name && github.event.pull_request.number || github.event.action }}
cancel-in-progress: true

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main_win.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ env:
STARBOARD_TOOLCHAINS_DIR: /root/starboard-toolchains

concurrency:
group: '${{ github.workflow }}-${{ github.event_name }}-${{ inputs.platform }} @ ${{ github.event.label.name || github.event.pull_request.number || github.sha }}'
group: ${{ github.workflow }}-${{ github.event_name }}-${{ inputs.platform }} @ ${{ github.event.label.name || github.event.pull_request.number || github.sha }} @ ${{ github.event.label.name && github.event.pull_request.number || github.event.action }}
cancel-in-progress: true

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
Expand Down

0 comments on commit 577c459

Please sign in to comment.