Skip to content

Update to node20

Update to node20 #234

name: 'Show visual-diffs in comment'
on:
pull_request:
paths:
- src/show-visual-diffs-in-comment.ts
- dist/show-visual-diffs-in-comment/**.js
- .github/workflows/show-visual-diffs-in-comment.yml
- show-visual-diffs-in-comment/action.yml
jobs:
comment-visual-diffs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./show-visual-diffs-in-comment/
id: getbody
with:
gcloud-credentials-json: ${{ secrets.GCLOUD_CREDENTIALS_JSON }}
- name: setup gh cli
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
- name: comment diff
env:
PRNUM: ${{ github.event.pull_request.number }}
BODY: ${{ steps.getbody.outputs.body }}
run: gh pr comment $PRNUM --body "$BODY"