ci: preview deploy output

This commit is contained in:
Marc 2021-07-17 11:29:02 -04:00
parent 8836a867b4
commit 8e52876eb8

View file

@ -82,7 +82,15 @@ jobs:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
run: |
netlify deploy --dir=dist --json > output.log
echo "::set-output name=stdout::$(cat output.log)"
export NETLIFY_STDOUT=$(cat output.log)
- name: Report
run: |
echo ${{ steps.preview-deploy.outputs.stdout }}
uses: actions/github-script@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}i
script: |
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: ${{ $NETLIFY_STDOUT }}
})