Skip to content

Commit c5f5d20

Browse files
jneiraberberman
andauthored
Remove ignored paths (#1623)
* Remove ignored paths * Remove old needs * Add bench-init to needs Co-authored-by: Potato Hatsue <1793913507@qq.com>
1 parent 75e365a commit c5f5d20

File tree

3 files changed

+42
-23
lines changed

3 files changed

+42
-23
lines changed

.github/workflows/bench.yml

+15-10
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,22 @@ on:
44
pull_request:
55
branches:
66
- '**'
7-
paths-ignore:
8-
- '**/docs/**'
9-
- '**.md'
10-
- '**/LICENSE'
11-
- '.circleci/**'
12-
- 'install/**'
13-
- 'nix/**'
14-
- 'test/**'
15-
- 'ghcide/test/**'
167

178
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@master
16+
with:
17+
cancel_others: true
18+
paths_ignore: '["**/docs/**", "**.md", "**/LICENSE", ".circleci/**", "install/**", "nix/**", "**/test/**"]'
19+
1820
bench-init:
21+
needs: pre_job
22+
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
1923
runs-on: ${{ matrix.os }}
2024

2125
strategy:
@@ -86,7 +90,8 @@ jobs:
8690
path: ~/.cabal/cabal.tar.gz
8791

8892
bench-example:
89-
needs: [bench-init]
93+
needs: [pre_job, bench-init]
94+
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
9095
runs-on: ${{ matrix.os }}
9196

9297
strategy:

.github/workflows/nix.yml

+13-6
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,22 @@ on:
44
pull_request:
55
branches:
66
- '**'
7-
paths-ignore:
8-
- '**/docs/**'
9-
- '**.md'
10-
- '**/LICENSE'
11-
- '.circleci/**'
12-
- 'install/**'
137

148
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@master
16+
with:
17+
cancel_others: true
18+
paths_ignore: '["**/docs/**", "**.md", "**/LICENSE", ".circleci/**", "install/**"]'
19+
1520
nix:
21+
needs: pre_job
22+
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
1623
runs-on: ${{ matrix.os }}
1724

1825
strategy:

.github/workflows/test.yml

+14-7
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,23 @@ on:
88
pull_request:
99
branches:
1010
- '**'
11-
paths-ignore:
12-
- '**/docs/**'
13-
- '**.md'
14-
- '**/LICENSE'
15-
- '.circleci/**'
16-
- 'install/**'
17-
- 'nix/**'
1811

1912
jobs:
13+
pre_job:
14+
runs-on: ubuntu-latest
15+
outputs:
16+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
17+
steps:
18+
- id: skip_check
19+
uses: fkirc/skip-duplicate-actions@master
20+
with:
21+
cancel_others: true
22+
paths_ignore: '["**/docs/**", "**.md", "**/LICENSE", ".circleci/**", "install/**", "nix/**"]'
23+
24+
2025
test:
26+
needs: pre_job
27+
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
2128
runs-on: ${{ matrix.os }}
2229
strategy:
2330
fail-fast: true

0 commit comments

Comments
 (0)