failed-build #228
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Failed builds | |
on: | |
repository_dispatch: | |
types: [failed-build] | |
permissions: {} | |
env: | |
PR_NUMBER: ${{ github.event.client_payload.pr_number }} | |
jobs: | |
comment: | |
name: Write comment on PR | |
permissions: | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 | |
with: | |
script: | | |
const { PR_NUMBER } = process.env; | |
github.rest.issues.createComment({ | |
issue_number: PR_NUMBER, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: 'Oh no, the docs build failed! To see why visit the [failing build](https://github.com/timescale/web-documentation/actions/runs/${{ github.event.client_payload.run_id }}) (link only accessible to Timescalers).' | |
}) |