Skip to content

Add tool to close an issue and update create-file tool #2

Add tool to close an issue and update create-file tool

Add tool to close an issue and update create-file tool #2

name: Vercel Build Comment
on:
pull_request:
types: [opened, synchronize]
jobs:
comment-on-failure:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Wait for Vercel build
uses: patrickedqvist/[email protected]
id: waitForVercel
with:
token: ${{ secrets.GITHUB_TOKEN }}
max_timeout: 300
check_interval: 10
- name: Comment PR on failure
if: failure()
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.name,
body: 'The Vercel build for this PR has failed. Please check the Vercel deployment logs for more information.'
})