mirror of
https://github.com/pmret/papermario.git
synced 2024-11-09 20:42:41 +01:00
add github action to lint on push/pr
This commit is contained in:
parent
b5256e31ee
commit
0c318f87ab
5
.github/workflows/lint.yaml
vendored
5
.github/workflows/lint.yaml
vendored
@ -23,7 +23,6 @@ jobs:
|
|||||||
uses: trilom/file-changes-action@v1.2.4
|
uses: trilom/file-changes-action@v1.2.4
|
||||||
with:
|
with:
|
||||||
output: ' '
|
output: ' '
|
||||||
continue-on-error: true # see jitterbit/get-changed-files#7
|
|
||||||
- run: ./format.sh ${{ steps.files.outputs.files}}
|
- run: ./format.sh ${{ steps.files.outputs.files}}
|
||||||
|
|
||||||
# fail if any files were changed by ./format.sh
|
# fail if any files were changed by ./format.sh
|
||||||
@ -34,6 +33,4 @@ jobs:
|
|||||||
|
|
||||||
- name: Fail if any files reformatted
|
- name: Fail if any files reformatted
|
||||||
if: steps.files_formatted.outputs.files_changed == 'true'
|
if: steps.files_formatted.outputs.files_changed == 'true'
|
||||||
run: |
|
run: exit 1
|
||||||
git diff
|
|
||||||
exit 1
|
|
||||||
|
Loading…
Reference in New Issue
Block a user