Skip to content

Commit ba6ce9d

Browse files
authored
only run chart linting for specific files instead of trying to catch every exception (#575)
* only run chart linting for specific files instead of trying to catch every exception Signed-off-by: jessebot <jessebot@linux.com> * attempt to adapt changes from https://github.com/nextcloud/.github/blob/master/workflow-templates/node.yml Signed-off-by: jessebot <jessebot@linux.com> * add needs: changes to lint job Signed-off-by: jessebot <jessebot@linux.com> * remove summary job afterall Signed-off-by: jessebot <jessebot@linux.com> --------- Signed-off-by: jessebot <jessebot@linux.com>
1 parent 1ae7421 commit ba6ce9d

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

.github/workflows/lint-test.yaml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,29 @@ name: Lint and Test Charts
22

33
on:
44
pull_request:
5-
paths-ignore:
6-
- '.github/**'
7-
- 'charts/**/README.md'
8-
- 'CODE_OF_CONDUCT.md'
9-
- 'CONTRIBUTING.md'
10-
- 'LICENSE'
11-
- 'README.md'
12-
5+
paths:
136
jobs:
7+
changes:
8+
runs-on: ubuntu-latest-low
9+
10+
outputs:
11+
src: ${{ steps.changes.outputs.src}}
12+
13+
steps:
14+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
15+
id: changes
16+
continue-on-error: true
17+
with:
18+
filters: |
19+
src:
20+
- 'charts/nextcloud/Chart.yaml'
21+
- 'charts/nextcloud/values.yaml'
22+
- 'charts/nextcloud/templates/**'
23+
1424
lint-test:
1525
runs-on: ubuntu-22.04
26+
needs: changes
27+
if: needs.changes.outputs.src != 'false'
1628
steps:
1729
- name: Checkout
1830
uses: actions/checkout@v4

0 commit comments

Comments
 (0)