Skip to content

Commit

Permalink
ci(gh-actions): fix step summary output
Browse files Browse the repository at this point in the history
  • Loading branch information
nogic1008 authored Apr 12, 2023
1 parent 472f878 commit a098688
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ jobs:
continue-on-error: true
run: |
echo "# Compare ${{ github.sha }} to main" >> $GITHUB_STEP_SUMMARY
git diff --no-index --exit-code ./dist/ ./current/ >> $GITHUB_STEP_SUMMARY
echo "```diff" >> $GITHUB_STEP_SUMMARY
git diff --no-index ./dist/ ./current/ >> $GITHUB_STEP_SUMMARY
echo "```" >> $GITHUB_STEP_SUMMARY
git diff --no-index --exit-code ./dist/ ./current/
- name: Report diff
if: steps.compare.outcome == 'failure'
Expand All @@ -149,5 +152,5 @@ jobs:
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `${message} [Show More](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})`
body: `${message} [Show More](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})`
})

0 comments on commit a098688

Please sign in to comment.