Skip to content

Commit

Permalink
Update git actions to send messages to Slack instead of Discord (#972)
Browse files Browse the repository at this point in the history
* replace discord with slack step

* actions updated to push messages to Slack instead of Discord
  • Loading branch information
0xDEnYO authored Feb 5, 2025
1 parent c66ef41 commit 0f63e33
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/diamondEmergencyPause.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}'
13 changes: 6 additions & 7 deletions .github/workflows/networkSecretsChecker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
12 changes: 6 additions & 6 deletions .github/workflows/unreviewedPRReminder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
11 changes: 6 additions & 5 deletions .github/workflows/updateScriptConfigReminder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)"

0 comments on commit 0f63e33

Please sign in to comment.