Skip to content

Commit d9bc2df

Browse files
authored
Warn users who want to be warned about failing comment workflows (#6758)
1 parent be07298 commit d9bc2df

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/primer_comment.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,10 @@ jobs:
138138
github_token: ${{ secrets.GITHUB_TOKEN }}
139139
leave_visible: 1
140140
issue_number: ${{ steps.post-comment.outputs.result }}
141+
- name: Warn about failure
142+
if: ${{ failure() }}
143+
run: |
144+
echo "🤖 **Comment workflow failed**. 🤖" >> $GITHUB_STEP_SUMMARY
145+
echo "" >> $GITHUB_STEP_SUMMARY
146+
echo "Please investigate:" >> $GITHUB_STEP_SUMMARY
147+
echo "@DanielNoord" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)