Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sereja313 committed Sep 12, 2024
1 parent c2b20a5 commit 2308070
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ jobs:
env:
RESOLVER: ${{ needs.check-nightly.outputs.resolver }}
run: |
./slack-send-message.sh
env:
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }
# you can change 'libraries' to the channel dedicated to the library, if there is one
# in order for a bot to be able to post messages, it must be added to the appropriate channel
curl -XPOST https://slack.com/api/chat.postMessage \
-H "Authorization: Bearer ${{ secrets.SLACK_TOKEN }}" \
-d "channel=libraries" \
-d "text=Repository https://github.com/${{ github.repository }} failed to build with latest nightly resolver ($RESOLVER)."
SLACK_CHANNEL: "libraries"
MESSAGE: "Repository https://github.com/${{ github.repository }} failed to build with latest nightly resolver ($RESOLVER)."
6 changes: 6 additions & 0 deletions slack-send-message.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

curl -XPOST https://slack.com/api/chat.postMessage \
-H "Authorization: Bearer $SLACK_TOKEN" \
-d "channel=$SLACK_CHANNEL" \
-d "text=$MESSAGE"

0 comments on commit 2308070

Please sign in to comment.