Skip to content

Commit ee3e382

Browse files
committed
Skip CI if only changes are documentation
1 parent 45643b5 commit ee3e382

7 files changed

+96
-0
lines changed

.github/workflows/check-cabal-files.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,21 @@ on:
55
create:
66

77
jobs:
8+
doc-only-changes:
9+
runs-on: ubuntu-latest
10+
11+
outputs:
12+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
13+
14+
steps:
15+
- name: Check if only documentation changes
16+
id: skip_check
17+
uses: fkirc/skip-duplicate-actions@v5
18+
with:
19+
paths_ignore: '["**/*.md", "**/*.rst", "**/LICENSE", "**/NOTICE"]'
20+
821
check-cabal-files:
22+
if: needs.doc-only-changes.outputs.should_skip != 'true'
923
runs-on: ubuntu-latest
1024

1125
steps:

.github/workflows/check-git-dependencies.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,21 @@ on:
44
push:
55

66
jobs:
7+
doc-only-changes:
8+
runs-on: ubuntu-latest
9+
10+
outputs:
11+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
12+
13+
steps:
14+
- name: Check if only documentation changes
15+
id: skip_check
16+
uses: fkirc/skip-duplicate-actions@v5
17+
with:
18+
paths_ignore: '["**/*.md", "**/*.rst", "**/LICENSE", "**/NOTICE"]'
19+
720
build:
21+
if: needs.doc-only-changes.outputs.should_skip != 'true'
822
runs-on: ubuntu-latest
923

1024
defaults:

.github/workflows/check-mainnet-config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,21 @@ on:
44
push:
55

66
jobs:
7+
doc-only-changes:
8+
runs-on: ubuntu-latest
9+
10+
outputs:
11+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
12+
13+
steps:
14+
- name: Check if only documentation changes
15+
id: skip_check
16+
uses: fkirc/skip-duplicate-actions@v5
17+
with:
18+
paths_ignore: '["**/*.md", "**/*.rst", "**/LICENSE", "**/NOTICE"]'
19+
720
build:
21+
if: needs.doc-only-changes.outputs.should_skip != 'true'
822
runs-on: ubuntu-latest
923

1024
defaults:

.github/workflows/check-nix-config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,21 @@ on:
44
push:
55

66
jobs:
7+
doc-only-changes:
8+
runs-on: ubuntu-latest
9+
10+
outputs:
11+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
12+
13+
steps:
14+
- name: Check if only documentation changes
15+
id: skip_check
16+
uses: fkirc/skip-duplicate-actions@v5
17+
with:
18+
paths_ignore: '["**/*.md", "**/*.rst", "**/LICENSE", "**/NOTICE"]'
19+
720
build:
21+
if: needs.doc-only-changes.outputs.should_skip != 'true'
822
runs-on: ubuntu-latest
923

1024
defaults:

.github/workflows/github-page.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,21 @@ name: "Haddock documentation"
33
on: [push]
44

55
jobs:
6+
doc-only-changes:
7+
runs-on: ubuntu-latest
8+
9+
outputs:
10+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
11+
12+
steps:
13+
- name: Check if only documentation changes
14+
id: skip_check
15+
uses: fkirc/skip-duplicate-actions@v5
16+
with:
17+
paths_ignore: '["**/*.md", "**/*.rst", "**/LICENSE", "**/NOTICE"]'
18+
619
build:
20+
if: needs.doc-only-changes.outputs.should_skip != 'true'
721
runs-on: ${{ matrix.os }}
822

923
defaults:

.github/workflows/haskell.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,21 @@ on:
1414
create:
1515

1616
jobs:
17+
doc-only-changes:
18+
runs-on: ubuntu-latest
19+
20+
outputs:
21+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
22+
23+
steps:
24+
- name: Check if only documentation changes
25+
id: skip_check
26+
uses: fkirc/skip-duplicate-actions@v5
27+
with:
28+
paths_ignore: '["**/*.md", "**/*.rst", "**/LICENSE", "**/NOTICE"]'
29+
1730
build:
31+
if: needs.doc-only-changes.outputs.should_skip != 'true'
1832
runs-on: ${{ matrix.os }}
1933

2034
strategy:

.github/workflows/nightly-trigger.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,19 @@ on:
66
- cron: '0 5 * * *'
77

88
jobs:
9+
doc-only-changes:
10+
outputs:
11+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
12+
13+
steps:
14+
- name: Check if only documentation changes
15+
id: skip_check
16+
uses: fkirc/skip-duplicate-actions@v5
17+
with:
18+
paths_ignore: '["**/*.md", "**/*.rst", "**/LICENSE", "**/NOTICE"]'
19+
920
build:
21+
if: needs.doc-only-changes.outputs.should_skip != 'true'
1022
runs-on: ubuntu-latest
1123

1224
defaults:

0 commit comments

Comments
 (0)