ci: don't fail lint on first push to new branch

This commit is contained in:
Alex Bates 2020-08-24 13:53:19 +01:00
parent 21d4a26913
commit b37ca1583c
No known key found for this signature in database
GPG Key ID: 5E11C2DB78877706

View File

@ -23,7 +23,11 @@ jobs:
uses: trilom/file-changes-action@v1.2.4
with:
output: ' '
continue-on-error: true
- run: ./format.sh ${{ steps.files.outputs.files}}
if: ${{ steps.files.outcome == 'success' }}
- run: ./format.sh
if: ${{ steps.files.outcome == 'failure' }}
# fail if any files were changed by ./format.sh
- id: files_formatted