Skip to content

Commit ce019ea

Browse files
authored
Merge pull request #5646 from unisonweb/arya/prerelease-failure-alert
add slack error notification into prerelease workflow
2 parents 486410a + 2510e38 commit ce019ea

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/bundle-ucm.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,15 @@ jobs:
8484
path: ${{ env.ucm }}
8585
if-no-files-found: error
8686

87+
- name: report errors
88+
if: github.ref == 'refs/heads/trunk' && failure()
89+
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # https://github.com/slackapi/slack-github-action/releases/tag/v2.0.0
90+
with:
91+
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
92+
webhook-type: incoming-webhook
93+
payload: |
94+
text: "build-ucm failed on ${{ github.ref }}. See details: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} cc <@UF924D5S7>"
95+
8796
package-racket-lib:
8897
strategy:
8998
matrix:
@@ -134,7 +143,15 @@ jobs:
134143
scheme-libs/racket/unison.zip
135144
scheme-libs/racket/unison.zip.CHECKSUM
136145
if-no-files-found: error
137-
146+
- name: report errors
147+
if: github.ref == 'refs/heads/trunk' && failure()
148+
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # https://github.com/slackapi/slack-github-action/releases/tag/v2.0.0
149+
with:
150+
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
151+
webhook-type: incoming-webhook
152+
payload: |
153+
text: "package-racket-lib failed on ${{ github.ref }}. See details: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} cc <@UF924D5S7>"
154+
138155
build-dist-unison-runtime:
139156
needs: package-racket-lib
140157
name: build unison-runtime

0 commit comments

Comments
 (0)