Skip to content

Commit 4a645e3

Browse files
authored
Only cancel in progress workflow runs for pull requests
1 parent 951e670 commit 4a645e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
concurrency:
1515
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
16-
cancel-in-progress: true
16+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
1717

1818
jobs:
1919
build:

0 commit comments

Comments
 (0)