Skip to content

Make Change Comment #632

Make Change Comment

Make Change Comment #632

Workflow file for this run

name: Make Change Comment
on:
workflow_run:
workflows: ["Check Changes"]
types:
- completed
permissions:
pull-requests: write
jobs:
commenter:
if: ${{ github.actor != 'dependabot[bot]' && !startsWith(github.head_ref, 'publish/') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: comment
run-id: ${{github.event.workflow_run.id }}
github-token: ${{secrets.GITHUB_TOKEN}}
- uses: pnpm/action-setup@v2
name: Install pnpm
- run: pnpm install
name: Install dependencies
- run: pnpm build
name: Build
- run: node ./packages/github-pr-commenter/cmd/cli.mjs --comment-file comment.json
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
name: Create/update comment
# - uses: actions/checkout@v4
# with:
# ref: ${{ github.event.pull_request.head.sha }}
# fetch-depth: 0 ## Needed for changelog
# - name: Use Node.js 20.x
# uses: actions/setup-node@v4
# with:
# node-version: 20.x
# # DO NOT BUILD ANYTHING FROM THE PR HERE https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
# - run: |
# npm install -g @chronus/github-pr-commenter
# chronus-github-pr-commenter
# env:
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
# name: Create/update comment