File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 # SPDX-License-Identifier: MIT
1313
1414 name: Lint eslint
15- @@ -19,13 +20,13 @@
15+ @@ -19,7 +20,7 @@
1616
1717 jobs:
1818 changes:
2121 permissions:
2222 contents: read
2323 pull-requests: read
24-
25- outputs:
26- - src: ${{ steps.changes.outputs.src}}
27- + src: ${{ steps.changes.outputs.src }}
28-
29- steps:
30- - uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
31- @@ -72,8 +73,8 @@
32- with:
33- node-version: ${{ steps.versions.outputs.nodeVersion }}
34-
35- - - name: Set up npm ${{ steps.versions.outputs.npmVersion }}
36- - run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'
37- + - name: Show npm version
38- + run: npm --version
39-
40- - name: Install dependencies
41- env:
4224@@ -87,7 +88,7 @@
4325 summary:
4426 permissions:
4830 needs: [changes, lint]
4931
5032 if: always()
51- @@ -97,4 +98,10 @@
52-
53- steps:
54- - name: Summary status
55- - run: if ${{ needs.changes.outputs.src != 'false' && needs.lint.result != 'success' }}; then exit 1; fi
56- + env:
57- + CHANGED: ${{ needs.changes.outputs.src }}
58- + LINT_RESULT: ${{ needs.lint.result }}
59- + run: |
60- + if [ "$CHANGED" != "false" ] && [ "$LINT_RESULT" != "success" ]; then
61- + exit 1
62- + fi
You can’t perform that action at this time.
0 commit comments