Skip to content

Commit 2ee558f

Browse files
feat(deps): Skip CI when only docs changed (#638)
* feat(docs): Use forge to release docs Signed-off-by: Evgeniy Dikevich <[email protected]> * fix cspell Signed-off-by: Evgeniy Dikevich <[email protected]> * feat: Skip CI when only docs changed Signed-off-by: Evgeniy Dikevich <[email protected]> * Add needs Signed-off-by: Evgeniy Dikevich <[email protected]> * Fix cspell Signed-off-by: Evgeniy Dikevich <[email protected]> --------- Signed-off-by: Evgeniy Dikevich <[email protected]>
1 parent 7bfe86d commit 2ee558f

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed

.config/dictionaries/project.dic

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ dockerhub
7979
docstrings
8080
doctests
8181
Dominik
82+
dorny
8283
dotenv
8384
dotenvy
8485
dotglob

.github/workflows/ci.yml

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,39 @@ permissions:
1616
pull-requests: write
1717

1818
jobs:
19+
paths-filter:
20+
runs-on: ubuntu-latest
21+
outputs:
22+
docs: ${{ steps.filter.outputs.docs }}
23+
not-only-docs: ${{ steps.filter.outputs.not-only-docs }}
24+
steps:
25+
- uses: actions/checkout@v5
26+
- uses: dorny/paths-filter@v3
27+
id: filter
28+
with:
29+
filters: |
30+
docs:
31+
- 'docs/**'
32+
- '.config/dictionaries/project.dic'
33+
not-only-docs:
34+
- '!((docs/**)|.config/dictionaries/project.dic)'
35+
36+
docs-only:
37+
if: ${{ needs.paths-filter.outputs.docs == 'true' && needs.paths-filter.outputs.not-only-docs != 'true' }}
38+
needs: [paths-filter]
39+
uses: input-output-hk/catalyst-forge/.github/workflows/release.yml@ci/v1.10.0
40+
with:
41+
releases: '[{"project":"./docs","name":"docs"}]'
42+
forge_version: 0.21.0
43+
1944
ci:
20-
if: ${{ !github.event.pull_request.draft }}
21-
uses: input-output-hk/catalyst-forge/.github/workflows/ci.yml@ci/v1.9.0
45+
if: ${{ !github.event.pull_request.draft && needs.paths-filter.outputs.not-only-docs == 'true'}}
46+
needs: [paths-filter]
47+
uses: input-output-hk/catalyst-forge/.github/workflows/ci.yml@ci/v1.10.0
2248
with:
23-
forge_version: 0.20.0
49+
forge_version: 0.21.0
2450

2551
test_reporting:
2652
if: ${{ !github.event.pull_request.draft }}
27-
needs: ci
53+
needs: [ci]
2854
uses: ./.github/workflows/generate-allure-report.yml

0 commit comments

Comments
 (0)