Bump actions/checkout from 2 to 4 #231
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |