Skip to content

Bump actions/checkout from 2 to 4 #231

Bump actions/checkout from 2 to 4

Bump actions/checkout from 2 to 4 #231

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@v4
- 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"