From 45cabe8223c72b9b4dfb473b7f6a1aa89944deb9 Mon Sep 17 00:00:00 2001 From: Prince Date: Thu, 10 Aug 2023 17:14:26 +0400 Subject: [PATCH 1/2] chore: updated slack webhook URL --- .../workflows/push_and_pull_crowdin_translations.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push_and_pull_crowdin_translations.yml b/.github/workflows/push_and_pull_crowdin_translations.yml index f2ddf681bcb6..19e74096300a 100644 --- a/.github/workflows/push_and_pull_crowdin_translations.yml +++ b/.github/workflows/push_and_pull_crowdin_translations.yml @@ -91,9 +91,11 @@ jobs: # Send a message to Slack (granted we have a webhook secret). # This check also allows a repo admin to disable the Slack message by removing the secret. - if [ -n "${{ secrets.TRANSLATIONS_SLACK_WEBHOOK }}" ]; then + if [ -n "${{ secrets.ANNOUNCE_TRANSLATION_WEBHOOK + }}" ]; then echo "Sending message to Slack (#team_translations)" - curl -X POST -H 'Content-type: application/json' --data '{"text":"There are new or updated strings available for Deriv.app (https://crowdin.com/project/deriv-app)."}' ${{ secrets.TRANSLATIONS_SLACK_WEBHOOK }} + curl -X POST -H 'Content-type: application/json' --data '{"text":"There are new or updated strings available for Deriv.app (https://crowdin.com/project/deriv-app)."}' ${{ secrets.ANNOUNCE_TRANSLATION_WEBHOOK + }} fi fi @@ -111,9 +113,11 @@ jobs: # Send a message to Slack (granted we have a webhook secret). # This check also allows a repo admin to disable the Slack message by removing the secret. - if [ -n "${{ secrets.TRANSLATIONS_SLACK_WEBHOOK }}" ]; then + if [ -n "${{ secrets.ANNOUNCE_TRANSLATION_WEBHOOK + }}" ]; then echo "Sending message to Slack (#team_translations)" - curl -X POST -H 'Content-type: application/json' --data '{"text":"There are new or updated strings available for DP2P (https://crowdin.com/project/deriv-app)."}' ${{ secrets.TRANSLATIONS_SLACK_WEBHOOK }} + curl -X POST -H 'Content-type: application/json' --data '{"text":"There are new or updated strings available for DP2P (https://crowdin.com/project/deriv-app)."}' ${{ secrets.ANNOUNCE_TRANSLATION_WEBHOOK + }} fi fi From c73fe06c133ee240c735aeda06fa6a41aace896f Mon Sep 17 00:00:00 2001 From: Prince Date: Thu, 10 Aug 2023 17:16:55 +0400 Subject: [PATCH 2/2] chore: updated slack webhook URL --- .../workflows/push_and_pull_crowdin_translations.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/push_and_pull_crowdin_translations.yml b/.github/workflows/push_and_pull_crowdin_translations.yml index 19e74096300a..5339a42208af 100644 --- a/.github/workflows/push_and_pull_crowdin_translations.yml +++ b/.github/workflows/push_and_pull_crowdin_translations.yml @@ -91,11 +91,9 @@ jobs: # Send a message to Slack (granted we have a webhook secret). # This check also allows a repo admin to disable the Slack message by removing the secret. - if [ -n "${{ secrets.ANNOUNCE_TRANSLATION_WEBHOOK - }}" ]; then + if [ -n "${{ secrets.ANNOUNCE_TRANSLATION_WEBHOOK }}" ]; then echo "Sending message to Slack (#team_translations)" - curl -X POST -H 'Content-type: application/json' --data '{"text":"There are new or updated strings available for Deriv.app (https://crowdin.com/project/deriv-app)."}' ${{ secrets.ANNOUNCE_TRANSLATION_WEBHOOK - }} + curl -X POST -H 'Content-type: application/json' --data '{"text":"There are new or updated strings available for Deriv.app (https://crowdin.com/project/deriv-app)."}' ${{ secrets.ANNOUNCE_TRANSLATION_WEBHOOK }} fi fi @@ -113,11 +111,9 @@ jobs: # Send a message to Slack (granted we have a webhook secret). # This check also allows a repo admin to disable the Slack message by removing the secret. - if [ -n "${{ secrets.ANNOUNCE_TRANSLATION_WEBHOOK - }}" ]; then + if [ -n "${{ secrets.ANNOUNCE_TRANSLATION_WEBHOOK }}" ]; then echo "Sending message to Slack (#team_translations)" - curl -X POST -H 'Content-type: application/json' --data '{"text":"There are new or updated strings available for DP2P (https://crowdin.com/project/deriv-app)."}' ${{ secrets.ANNOUNCE_TRANSLATION_WEBHOOK - }} + curl -X POST -H 'Content-type: application/json' --data '{"text":"There are new or updated strings available for DP2P (https://crowdin.com/project/deriv-app)."}' ${{ secrets.ANNOUNCE_TRANSLATION_WEBHOOK }} fi fi