Skip to content

Commit ccbad42

Browse files
committed
fix: minimize ESLint template patch
Signed-off-by: Vitor Mattos <vitor@php.rio>
1 parent a2e0770 commit ccbad42

1 file changed

Lines changed: 1 addition & 31 deletions

File tree

‎patches/nextcloud/lint-eslint-template.yml.patch‎

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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:
@@ -21,24 +21,6 @@
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:
@@ -48,15 +30,3 @@
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

0 commit comments

Comments
 (0)