Skip to content

Commit 1c66637

Browse files
authored
skip lint and test when only docs change (llm-d#494)
Signed-off-by: setsunakute <fripsidenice@gmail.com>
1 parent 4c8321e commit 1c66637

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/ci-pr-checks.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,28 @@ on:
99
- main
1010

1111
jobs:
12+
check-changes:
13+
runs-on: ubuntu-latest
14+
outputs:
15+
docs: ${{ steps.filter.outputs.docs }}
16+
steps:
17+
- name: Checkout source
18+
uses: actions/checkout@v6
19+
- uses: dorny/paths-filter@v3
20+
id: filter
21+
with:
22+
filters: |
23+
docs:
24+
- 'README.md'
25+
- 'docs/**'
1226
lint-and-test:
27+
needs: check-changes
28+
if: ${{ needs.check-changes.outputs.docs == 'false' }}
1329
runs-on: ubuntu-latest
1430
steps:
1531
- name: Checkout source
1632
uses: actions/checkout@v6
17-
33+
1834
- name: Sanity check repo contents
1935
run: ls -la
2036

0 commit comments

Comments
 (0)