ci: preview deploy output
This commit is contained in:
parent
8836a867b4
commit
8e52876eb8
1 changed files with 11 additions and 3 deletions
14
.github/workflows/main.yml
vendored
14
.github/workflows/main.yml
vendored
|
@ -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 }}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue