Skip to content

Commit 2ff0380

Browse files
committed
fix: handle edge cases
1 parent 979d50d commit 2ff0380

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ name: Build
22

33
on:
44
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
56
push:
67
branches: [main]
78

89
concurrency:
9-
group: ${{ github.workflow }}-${{ github.ref }}
10-
cancel-in-progress: true
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11+
cancel-in-progress: ${{ github.event_name != 'pull_request' }}
1112

1213
permissions:
1314
contents: read

.github/workflows/check.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ name: Check
22

33
on:
44
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
56
push:
67
branches: [main]
78

89
concurrency:
9-
group: ${{ github.workflow }}-${{ github.ref }}
10-
cancel-in-progress: true
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11+
cancel-in-progress: ${{ github.event_name != 'pull_request' }}
1112

1213
permissions:
1314
contents: read

.github/workflows/tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ name: Tests
22

33
on:
44
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
56
push:
67
branches: [main]
78

89
concurrency:
9-
group: ${{ github.workflow }}-${{ github.ref }}
10-
cancel-in-progress: true
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11+
cancel-in-progress: ${{ github.event_name != 'pull_request' }}
1112

1213
permissions:
1314
contents: read

0 commit comments

Comments
 (0)