Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): try sending via webhook #607

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions .github/workflows/e2e-test-workflow-call-nightly.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
workflow_call:
secrets:
SLACK_E2E_TEST_TOKEN:
SLACK_E2E_TEST_WEBHOOK_URL:
required: true
inputs:
dymension_ci:
Expand Down Expand Up @@ -216,10 +216,14 @@ jobs:
echo "SLACK_MESSAGE=$MESSAGE_ESCAPED" >> $GITHUB_ENV

- name: Notify Slack
uses: slackapi/[email protected]
with:
method: chat.postMessage
token: ${{ secrets.SLACK_E2E_TEST_TOKEN }}
payload: |
channel: C088KMGDNHW,
text: "${{ env.SLACK_MESSAGE }}"
env:
SLACK_E2E_TEST_TOKEN: ${{ secrets.SLACK_E2E_TEST_TOKEN }}
run: |
if [ -z "${SLACK_E2E_TEST_TOKEN}" ]; then
echo "SLACK_E2E_TEST_TOKEN is not set"
exit 1
else
echo "SLACK_E2E_TEST_TOKEN is set"
fi

curl -X POST -H 'Content-type: application/json' -d "{\"text\": \"${{ env.SLACK_MESSAGE }}\"}" $SLACK_E2E_TEST_TOKEN
Loading