send Slack notifications only, when linting errors can’t be fixed automatically

This commit is contained in:
Hans Pagel
2020-11-18 11:28:24 +01:00
parent c18c936f7f
commit b916c4317c

View File

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