-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update git actions to send messages to Slack instead of Discord (#972)
* replace discord with slack step * actions updated to push messages to Slack instead of Discord
- Loading branch information
Showing
4 changed files
with
24 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,10 +87,10 @@ jobs: | |
ETH_NODE_URI_ZKSYNC: ${{ secrets.ETH_NODE_URI_ZKSYNC }} | ||
PRIVATE_KEY_PAUSER_WALLET: ${{ secrets.PRIV_KEY_PAUSER_WALLET }} | ||
|
||
- name: Send Discord message | ||
uses: Ilshidur/[email protected] | ||
- name: Send Reminder to Slack SC-general Channel | ||
uses: slackapi/[email protected] | ||
with: | ||
args: | | ||
:warning: 'ATTENTION - the emergency diamond pause action was just executed by ${{ github.actor }}' | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_DEV_SMARTCONTRACTS }} | ||
webhook: ${{ secrets.SLACK_WEBHOOK_SC_GENERAL }} | ||
webhook-type: incoming-webhook | ||
payload: | | ||
text: 'ATTENTION - the emergency diamond pause action was just executed by ${{ github.actor }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,12 +56,11 @@ jobs: | |
echo -e "\033[32mFound a RPC URL for each active network. Check passed.\033[0m" | ||
fi | ||
- name: Send Discord message | ||
- name: Send Reminder to Slack SC-general Channel | ||
if: env.MISSING_SECRETS != '' | ||
uses: Ilshidur/[email protected] | ||
uses: slackapi/[email protected] | ||
with: | ||
args: | | ||
:warning: Missing GitHub Secrets for Networks: | ||
${{ env.MISSING_SECRETS }} | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_DEV_SMARTCONTRACTS }} | ||
webhook: ${{ secrets.SLACK_WEBHOOK_SC_GENERAL }} | ||
webhook-type: incoming-webhook | ||
payload: | | ||
text: "Missing GitHub Secrets for Network(s): ${{ env.MISSING_SECRETS }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,10 +72,10 @@ jobs: | |
echo -e "$OLD_PRS" | ||
echo "old_prs=$OLD_PRS" >> $GITHUB_ENV | ||
- name: Send Discord message | ||
if: env.old_prs != '' | ||
uses: Ilshidur/[email protected] | ||
- name: Send Reminder to Slack PR Review Channel | ||
uses: slackapi/[email protected] | ||
with: | ||
args: 'Hey team, please check out the following PRs that are not yet reviewed/merged: ${{ env.old_prs }}' | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
webhook: ${{ secrets.SLACK_WEBHOOK_SC_REVIEW }} | ||
webhook-type: incoming-webhook | ||
payload: | | ||
text: "Hey team, please check out the following PRs that are not yet reviewed/merged: ${{ env.old_prs }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,10 @@ jobs: | |
notify: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Send Discord message | ||
uses: Ilshidur/[email protected] | ||
- name: Send Reminder to Slack SC-general Channel | ||
uses: slackapi/[email protected] | ||
with: | ||
args: "Hey team, please update your scripts/config.sh file (see config.example.sh for latest changes)" | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_DEV_SMARTCONTRACTS }} | ||
webhook: ${{ secrets.SLACK_WEBHOOK_SC_GENERAL }} | ||
webhook-type: incoming-webhook | ||
payload: | | ||
text: "Hey team, please update your scripts/config.sh file (see config.example.sh for latest changes)" |