Skip to content

feat: add comment-body output #1

feat: add comment-body output

feat: add comment-body output #1

name: Test comment-body
on:
pull_request:
push:
permissions:
contents: read
issues: write
pull-requests: write
jobs:
test:
name: job
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- id: compressed-size
uses: ./
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
base-ref: master
pattern: index.js
comment-key: output-smoke
- name: Print comment-body output
env:
COMMENT_BODY: ${{ steps.compressed-size.outputs.comment-body }}
run: |
if [ -z "$COMMENT_BODY" ]; then
echo "comment-body output is empty" >&2
exit 1
fi
printf '%s\n' "$COMMENT_BODY"