Comment on syntax errors (#656)

This commit is contained in:
Anna Prosvetova
2021-08-17 18:48:13 +03:00
committed by GitHub
parent fe2b9718e1
commit 46502ac44a
2 changed files with 23 additions and 6 deletions

View File

@@ -43,7 +43,19 @@ jobs:
uses: ./.github/actions/docker
- name: 'Check syntax'
id: syntax_check
uses: ./.github/actions/docker
continue-on-error: false
with:
run: /syntax_check.sh
run: SET_GH_OUTPUT=1 /syntax_check.sh
- name: Report syntax errors
if: failure() && steps.syntax_check.outputs.errors && github.event.pull_request
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
Please fix following syntax errors:
```
${{ steps.syntax_check.outputs.errors }}
```
You might want to run `docker compose exec dev /syntax_check.sh` for an auto-fix.