Skip to content

comment-bot

comment-bot #60

Workflow file for this run

name: comment-bot
run-name: comment-bot
on:
issue_comment:
types:
- created
permissions: {}
jobs:
comment-bot:
name: comment-bot
if: startsWith(github.event.comment.body, '/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
sparse-checkout: .github
- uses: actions/setup-node@v3
with:
node-version: lts/Hydrogen
- run: npm install semver cheerio js-yaml
- uses: actions/github-script@v6
env:
SECRETS: ${{ toJSON(secrets) }}
with:
github-token: ${{ secrets.BOT_PAT }}
script: |
require('.github/scripts/comment-bot.js')({ github, context, core, glob, io, exec, fetch, require });