From b916c4317c551b1238bb6e280ad7302803e8558a Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Wed, 18 Nov 2020 11:28:24 +0100 Subject: [PATCH] =?UTF-8?q?send=20Slack=20notifications=20only,=20when=20l?= =?UTF-8?q?inting=20errors=20can=E2=80=99t=20be=20fixed=20automatically?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7983dac8..21872b60 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,6 +45,16 @@ jobs: if: steps.cache.outputs.cache-hit != 'true' run: yarn install + - name: Fix code style linting errors + id: lint-fix + run: yarn lint:fix + + - name: Commit fixed linting errors + id: commit + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: "ci: fix code style linting errors" + - name: Lint code id: lint run: yarn lint @@ -57,18 +67,6 @@ jobs: steps: ${{ toJson(steps) }} channel: '#tiptap-notifications' - - name: Fix code style linting errors - id: lint-fix - run: yarn lint:fix - if: failure() - - - name: Commit fixed linting errors - id: commit - uses: stefanzweifel/git-auto-commit-action@v4 - if: failure() - with: - commit_message: "ci: fix code style linting errors" - test: runs-on: ubuntu-latest