Skip to content

Update actions/github-script action to v7 #1300

Update actions/github-script action to v7

Update actions/github-script action to v7 #1300

Workflow file for this run

name: Commenter
on: [push, pull_request]
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
- run: npm install
- run: |
node lib/comment.js --log
if [ $? -ne 0 ]; then
echo "cdn_check=fail" >> "$GITHUB_ENV"
else
echo "cdn_check=pass" >> "$GITHUB_ENV"
fi
- name: Comment PR
uses: marocchino/sticky-pull-request-comment@v2
with:
path: results.txt
- if: ${{ env.cdn_check }} == "fail"
uses: actions/github-script@v7
with:
script: |
core.setFailed('CDN check failed!')