added comment on fail

This commit is contained in:
Jack 2021-09-30 23:43:15 +01:00 committed by GitHub
parent 147602e927
commit 61c5c0474a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,3 +46,13 @@ jobs:
git add --update
git commit -m "Auto-format with Prettier" || :
git push origin HEAD:${{github.event.pull_request.head.ref}}
run-if-failed:
runs-on: ubuntu-latest
needs: [lint_and_format]
if: always() && (needs.job1.result == 'failure')
steps:
- name: Comment PR
uses: thollander/actions-comment-pull-request@v1
with:
message: "It seems like your PR failed for some reason! Click on 'Files changed' in the GitHub UI and look for red errors (dont worry about unchanged files)"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}