Skip to content

Commit 1d831f0

Browse files
authored
ci: add docs-skip logic (airbytehq#61531)
1 parent 94bedbb commit 1d831f0

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/docs-build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,31 @@ on:
77
types: [opened, synchronize, reopened]
88

99
jobs:
10+
detect-changes:
11+
name: Detect Changes
12+
runs-on: ubuntu-24.04
13+
steps:
14+
# Checkout not required from `pull_request` event.
15+
# The detection method uses the GitHub REST API.
16+
- name: Detect Changes
17+
id: detect-changes
18+
uses: dorny/[email protected]
19+
with:
20+
filters: |
21+
docs:
22+
- 'docs/**'
23+
- 'docusaurus/**'
24+
- '.markdownlint.jsonc'
25+
26+
outputs:
27+
# 'true' if any of the docs files have changed, 'false' otherwise.
28+
changed: ${{ steps.detect-changes.outputs.docs }}
29+
1030
build-docs:
1131
name: Build Airbyte Docs
1232
runs-on: ubuntu-24.04
33+
needs: detect-changes
34+
if: needs.detect-changes.outputs.changed == 'true'
1335
steps:
1436
- name: Checkout Current Branch
1537
uses: actions/checkout@v4

0 commit comments

Comments
 (0)