Commit c3d8ba5 1 parent 8a9f5f6 commit c3d8ba5 Copy full SHA for c3d8ba5
File tree 3 files changed +47
-0
lines changed
3 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 6
6
- main
7
7
8
8
jobs :
9
+ pre_job :
10
+ runs-on : ubuntu-latest
11
+ outputs :
12
+ should_skip : ${{ steps.skip_check.outputs.should_skip }}
13
+ steps :
14
+ - id : skip_check
15
+ uses : fkirc/skip-duplicate-actions@v5
16
+ with :
17
+ # cancel previous builds if a new commit is pushed
18
+ cancel_others : ' true'
19
+ # only run on push *or* pull_request, not both
20
+ concurrent_skipping : ' same_content_newer'
21
+
9
22
test-docs :
23
+ needs : pre_job
24
+ if : needs.pre_job.outputs.should_skip != 'true'
10
25
runs-on : ubuntu-latest
11
26
steps :
12
27
- name : Install Dependencies
Original file line number Diff line number Diff line change @@ -3,7 +3,23 @@ name: Build and run tests (Linux)
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
+ pre_job :
7
+ runs-on : ubuntu-latest
8
+ outputs :
9
+ should_skip : ${{ steps.skip_check.outputs.should_skip }}
10
+ steps :
11
+ - id : skip_check
12
+ uses : fkirc/skip-duplicate-actions@v5
13
+ with :
14
+ paths_ignore : ' ["**/README.md", "docs/**", "guidelines/**"]'
15
+ # cancel previous builds if a new commit is pushed
16
+ cancel_others : ' true'
17
+ # only run on push *or* pull_request, not both
18
+ concurrent_skipping : ' same_content_newer'
19
+
6
20
test-linux :
21
+ needs : pre_job
22
+ if : needs.pre_job.outputs.should_skip != 'true'
7
23
runs-on : ${{ matrix.os.id }}
8
24
strategy :
9
25
matrix :
Original file line number Diff line number Diff line change @@ -3,7 +3,23 @@ name: Build and run tests (macOS)
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
+ pre_job :
7
+ runs-on : ubuntu-latest
8
+ outputs :
9
+ should_skip : ${{ steps.skip_check.outputs.should_skip }}
10
+ steps :
11
+ - id : skip_check
12
+ uses : fkirc/skip-duplicate-actions@v5
13
+ with :
14
+ paths_ignore : ' ["**/README.md", "docs/**", "guidelines/**"]'
15
+ # cancel previous builds if a new commit is pushed
16
+ cancel_others : ' true'
17
+ # only run on push *or* pull_request, not both
18
+ concurrent_skipping : ' same_content_newer'
19
+
6
20
test-macos :
21
+ needs : pre_job
22
+ if : needs.pre_job.outputs.should_skip != 'true'
7
23
runs-on : ${{ matrix.os.id }}
8
24
strategy :
9
25
matrix :
You can’t perform that action at this time.
0 commit comments