From b394d66a3add6b31d4837fa88f9699ffd38faa33 Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Wed, 18 Nov 2020 11:16:51 +0100 Subject: [PATCH] automatically fix linting errors --- .github/workflows/build.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6e91f175..7983dac8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,12 +51,24 @@ jobs: - name: Send Slack notifications uses: act10ns/slack@v1 + if: failure() with: status: ${{ job.status }} 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 @@ -104,11 +116,11 @@ jobs: - name: Send Slack notifications uses: act10ns/slack@v1 + if: failure() with: status: ${{ job.status }} steps: ${{ toJson(steps) }} channel: '#tiptap-notifications' - if: failure() build: runs-on: ubuntu-latest @@ -151,8 +163,8 @@ jobs: - name: Send Slack notifications uses: act10ns/slack@v1 + if: failure() with: status: ${{ job.status }} steps: ${{ toJson(steps) }} channel: '#tiptap-notifications' - if: failure()