Skip to content

Commit 6679baf

Browse files
committed
build(unified): skip lint if docs only
1 parent fbc291c commit 6679baf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/docker-unified.yml

+10
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,29 @@ jobs:
3434
steps:
3535
- name: Check out the repo
3636
uses: hsheth2/sane-checkout-action@v1
37+
- uses: dorny/paths-filter@v2
38+
id: filter
39+
with:
40+
filters: |
41+
skip-lint:
42+
- '!(docs-website/**|docs/**|**.md)'
3743
- uses: actions/setup-python@v4
44+
if: ${{ steps.filter.outputs.skip-lint == 'true' }}
3845
with:
3946
python-version: "3.10"
4047
cache: "pip"
4148
- name: Set up JDK 17
49+
if: ${{ steps.filter.outputs.skip-lint == 'true' }}
4250
uses: actions/setup-java@v3
4351
with:
4452
distribution: "zulu"
4553
java-version: 17
4654
- name: Ensure packages are correct
55+
if: ${{ steps.filter.outputs.skip-lint == 'true' }}
4756
run: |
4857
python ./.github/scripts/check_python_package.py
4958
- name: Run lint on smoke test
59+
if: ${{ steps.filter.outputs.skip-lint == 'true' }}
5060
run: |
5161
./gradlew :smoke-test:lint
5262
setup:

0 commit comments

Comments
 (0)