Skip to content

Commit fd0c29f

Browse files
committed
ci: simplify concurrency check
1 parent b9c8c2f commit fd0c29f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1+
name: ci
2+
13
on:
24
push:
35
branches:
46
- 'master'
57
pull_request:
68

7-
name: build-and-test
8-
99
concurrency:
10-
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
11-
cancel-in-progress: true
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
1212

1313
jobs:
1414
check:
1515
name: Build and Check
1616
runs-on: ubuntu-latest
1717
timeout-minutes: 10
18-
1918
steps:
2019
- uses: actions/checkout@v4
2120

0 commit comments

Comments
 (0)