Skip to content

Commit

Permalink
feat(ci): print an update job summary
Browse files Browse the repository at this point in the history
  • Loading branch information
MattSturgeon committed Mar 26, 2024
1 parent df0a188 commit 6ef2f19
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,18 @@ jobs:
with:
pr-labels: dependencies
pr-assignees: MattSturgeon
- name: Print PR number
run: echo "Pull request \#${{ steps.update.outputs.pull-request-number }}."
- name: Summary
run: |
base="${{ github.server_url }}/${{ github.repository }}"
num="${{ steps.update.outputs.pull-request-number }}"
action="${{ steps.update.outputs.pull-request-operation }}"
url="${base}/pull/${num}"
pr="#${num}"
# stdout
echo "${pr} was ${action}."
# summary
echo "## Pull Request" >> $GITHUB_STEP_SUMMARY
echo "[${pr}](${url}) was ${action}." >> $GITHUB_STEP_SUMMARY

0 comments on commit 6ef2f19

Please sign in to comment.