send Slack notifications only, when linting errors can’t be fixed automatically
This commit is contained in:
22
.github/workflows/build.yml
vendored
22
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user