Skip to content

failed-build

failed-build #232

Workflow file for this run

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).'
})