Skip to content

Commit 1c4a1e6

Browse files
authored
Highlight next step using GitHub step summary (#357)
1 parent 42bb75e commit 1c4a1e6

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

.github/workflows/draft-changelog.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,5 @@ jobs:
4747
- name: "** Next Step **"
4848
run: |
4949
echo "Review PR: ${{ steps.draft-changelog.outputs.pr_url }}"
50+
echo "## Next Step" >> $GITHUB_STEP_SUMMARY
51+
echo "Review PR: ${{ steps.draft-changelog.outputs.pr_url }}" >> $GITHUB_STEP_SUMMARY

.github/workflows/draft-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,6 @@ jobs:
5959
run: |
6060
echo "Run the "Publish Release" Workflow with Release Url:"
6161
echo ${{ steps.draft-release.outputs.release_url }}
62+
echo "## Next Step" >> $GITHUB_STEP_SUMMARY
63+
echo "Run the "Publish Release" Workflow with Release Url:" >> $GITHUB_STEP_SUMMARY
64+
echo ${{ steps.draft-release.outputs.release_url }} >> $GITHUB_STEP_SUMMARY

.github/workflows/full-release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,21 @@ jobs:
7373
run: |
7474
echo "Verify the final release"
7575
echo ${{ steps.publish-release.outputs.release_url }}
76+
echo "## Next Step" >> $GITHUB_STEP_SUMMARY
77+
echo "Verify the final release" >> $GITHUB_STEP_SUMMARY
78+
echo ${{ steps.publish-release.outputs.release_url }} >> $GITHUB_STEP_SUMMARY
7679
if [ ! -z "${{ steps.publish-release.outputs.pr_url }}" ]; then
7780
echo "Merge the forwardport PR"
7881
echo ${{ steps.publish-release.outputs.pr_url }}
82+
echo "Merge the forwardport PR" >> $GITHUB_STEP_SUMMARY
83+
echo ${{ steps.publish-release.outputs.pr_url }} >> $GITHUB_STEP_SUMMARY
7984
fi
8085
8186
- name: "** Failure Message **"
8287
if: ${{ failure() }}
8388
run: |
8489
echo "Failed to Publish the Draft Release Url:"
8590
echo ${{ steps.draft-release.outputs.release_url }}
91+
echo "## Failure Message" >> $GITHUB_STEP_SUMMARY
92+
echo ":x: Failed to Publish the Draft Release Url:" >> $GITHUB_STEP_SUMMARY
93+
echo ${{ steps.draft-release.outputs.release_url }} >> $GITHUB_STEP_SUMMARY

.github/workflows/publish-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ jobs:
3535
run: |
3636
echo "Verify the final release"
3737
echo ${{ steps.publish-release.outputs.release_url }}
38+
echo "## Next Step" >> $GITHUB_STEP_SUMMARY
39+
echo "Verify the final release" >> $GITHUB_STEP_SUMMARY
40+
echo ${{ steps.publish-release.outputs.release_url }} >> $GITHUB_STEP_SUMMARY
3841
if [ ! -z "${{ steps.publish-release.outputs.pr_url }}" ]; then
3942
echo "Merge the forwardport PR"
4043
echo ${{ steps.publish-release.outputs.pr_url }}
44+
echo "Merge the forwardport PR" >> $GITHUB_STEP_SUMMARY
45+
echo ${{ steps.publish-release.outputs.pr_url }} >> $GITHUB_STEP_SUMMARY
4146
fi

0 commit comments

Comments
 (0)