Skip to content

Commit 8e506fe

Browse files
committed
Make test-notebooks job cancelable
1 parent 0b78c5a commit 8e506fe

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/test-notebooks.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ name: Test Notebooks
22

33
on: [push, pull_request]
44

5-
jobs:
5+
concurrency:
6+
group: ${{ github.ref }}-${{ github.workflow }}
7+
cancel-in-progress: true
68

9+
jobs:
710
test-notebooks:
811

912
if:
10-
github.event_name == 'push' ||
11-
github.event.pull_request.head.repo.full_name != github.repository
13+
github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
1214

1315
name: Test the notebooks
1416
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)