automatically fix linting errors

This commit is contained in:
Hans Pagel
2020-11-18 11:16:51 +01:00
parent 5513795191
commit b394d66a3a

View File

@@ -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()