From b37ca1583c5460ccd95511b88db1d06cbf36a383 Mon Sep 17 00:00:00 2001 From: Alex Bates Date: Mon, 24 Aug 2020 13:53:19 +0100 Subject: [PATCH] ci: don't fail lint on first push to new branch --- .github/workflows/lint.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 57055f3d70..61956f6155 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -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