File tree Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -103,24 +103,4 @@ jobs:
103103 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
104104 PR_NUMBER : ${{ github.event.issue.number }}
105105 NODE_ID : ${{ github.event.comment.node_id }}
106-
107- notify-job :
108- runs-on : ubuntu-22.04
109- needs : [build-and-push-dev-container]
110- if : ${{ always() && contains(needs.*.result, 'failure') }} <-- check that status of the previous job
111- steps :
112- - name : Notify on Failure
113- run : |
114- gh api graphql --silent --raw-field query="mutation AddReaction {addReaction(input:{subjectId:\"$NODE_ID\",content:THUMBS_DOWN}){reaction{content}subject{id}}}"
115- gh api graphql --silent --raw-field query="mutation RemoveReaction {removeReaction(input:{subjectId:\"$NODE_ID\",content:EYES}){reaction{content}subject{id}}}"
116- (
117- echo "**${{ github.workflow }}**"
118- echo "**Something went wrong!**"
119- echo
120- echo "**Details:** ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
121- ) | \
122- gh pr comment "${PR_NUMBER}" --repo ${{ github.repository }} -F -
123- env :
124- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
125- PR_NUMBER : ${{ github.event.issue.number }}
126- NODE_ID : ${{ github.event.comment.node_id }}
106+
You can’t perform that action at this time.
0 commit comments