From 3d71ba35c046b3306bcb97e697e4b2b18ec06b0f Mon Sep 17 00:00:00 2001 From: habib-deriv Date: Wed, 3 Aug 2022 14:53:19 +0600 Subject: [PATCH 1/8] add test PR --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index de100d06e065f..f2bd2946730c7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Binary-Static +# Binary-Static Test PR This repository contains the static HTML, Javascript, CSS, and images content of the [Binary.com](http://www.binary.com) website. From 325c05b31597ea687c89104d11a5e71a0361c7df Mon Sep 17 00:00:00 2001 From: habib-deriv Date: Wed, 3 Aug 2022 14:58:43 +0600 Subject: [PATCH 2/8] remove test PR --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f2bd2946730c7..de100d06e065f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Binary-Static Test PR +# Binary-Static This repository contains the static HTML, Javascript, CSS, and images content of the [Binary.com](http://www.binary.com) website. From b62ce115ab64f0a02a918d9d327a4847297115d9 Mon Sep 17 00:00:00 2001 From: habib-deriv Date: Mon, 16 Jan 2023 13:42:29 +0600 Subject: [PATCH 3/8] update crowdin cli version --- .github/workflows/sync_crowdin_translations.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/sync_crowdin_translations.yml b/.github/workflows/sync_crowdin_translations.yml index 739bc0383b638..b5e68e6db6065 100644 --- a/.github/workflows/sync_crowdin_translations.yml +++ b/.github/workflows/sync_crowdin_translations.yml @@ -33,7 +33,7 @@ jobs: git config --global user.email "80095553+DerivFE@users.noreply.github.com" echo "Installing Crowdin CLI" - sudo npm i -g @crowdin/cli + sudo npm i -g @crowdin/cli@3.9.1 echo "Installing project dependencies and building the project" npm install npm run build @@ -60,7 +60,7 @@ jobs: # This check also allows a repo admin to disable the Slack message by removing the secret. if [ -n "${{ secrets.TRANSLATIONS_SLACK_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 Binary.com (https://crowdin.com/project/binary-static)."}' ${{ secrets.TRANSLATIONS_SLACK_WEBHOOK }} + curl -X POST -H 'Content-type: application/json' --data '{"text":"There are new or updated strings available for Binary.com (https://crowdin.com/project/binary-static)."}' ${{ secrets.TRANSLACK_WEBHOOK }} fi else echo "No new string detected. Skip uploading messages.pot to Crowdin." @@ -86,14 +86,8 @@ jobs: git commit -m "translations: 📚 sync translations with crowdin" # Force push to this branch in case a previous run created it. - git push --set-upstream origin "$branch_name" -f + git push --set-upstream origin "$branch_name" - sudo apt install gh - gh auth login --with-token <<< ${{ secrets.PERSONAL_ACCESS_TOKEN }} - gh pr close "$branch_name" || true - gh pr create --fill --base "master" --head "binary-com:$branch_name" - - echo "Attempting to merge the PR." - gh pr merge "$branch_name" --admin --squash - echo "**The translation PR has beed merged successfully.**" + # Create a pull request + hub pull-request -b master -h "$branch_name" -m "translations: 📚 sync translations with crowdin" fi From 33cb19ace86dc547bbb3de2eed8b8c7c4f559ab5 Mon Sep 17 00:00:00 2001 From: habib-deriv Date: Mon, 16 Jan 2023 13:46:18 +0600 Subject: [PATCH 4/8] update crowdin cli version --- .github/workflows/sync_crowdin_translations.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sync_crowdin_translations.yml b/.github/workflows/sync_crowdin_translations.yml index b5e68e6db6065..4a9f53f4cccd8 100644 --- a/.github/workflows/sync_crowdin_translations.yml +++ b/.github/workflows/sync_crowdin_translations.yml @@ -60,7 +60,7 @@ jobs: # This check also allows a repo admin to disable the Slack message by removing the secret. if [ -n "${{ secrets.TRANSLATIONS_SLACK_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 Binary.com (https://crowdin.com/project/binary-static)."}' ${{ secrets.TRANSLACK_WEBHOOK }} + curl -X POST -H 'Content-type: application/json' --data '{"text":"There are new or updated strings available for Binary.com (https://crowdin.com/project/binary-static)."}' ${{ secrets.TRANSLATIONS_SLACK_WEBHOOK }} fi else echo "No new string detected. Skip uploading messages.pot to Crowdin." @@ -86,8 +86,14 @@ jobs: git commit -m "translations: 📚 sync translations with crowdin" # Force push to this branch in case a previous run created it. - git push --set-upstream origin "$branch_name" + git push --set-upstream origin "$branch_name" -f - # Create a pull request - hub pull-request -b master -h "$branch_name" -m "translations: 📚 sync translations with crowdin" + sudo apt install gh + gh auth login --with-token <<< ${{ secrets.PERSONAL_ACCESS_TOKEN }} + gh pr close "$branch_name" || true + gh pr create --fill --base "master" --head "binary-com:$branch_name" + + echo "Attempting to merge the PR." + gh pr merge "$branch_name" --admin --squash + echo "**The translation PR has beed merged successfully.**" fi From 897e1ccaedba1567d387c67a26e3b164f85a9727 Mon Sep 17 00:00:00 2001 From: habib-deriv Date: Wed, 3 Aug 2022 14:53:19 +0600 Subject: [PATCH 5/8] add test PR --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index de100d06e065f..f2bd2946730c7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Binary-Static +# Binary-Static Test PR This repository contains the static HTML, Javascript, CSS, and images content of the [Binary.com](http://www.binary.com) website. From efb9a6d9120b1dc91a9e0b862225b955b4c246db Mon Sep 17 00:00:00 2001 From: habib-deriv Date: Wed, 3 Aug 2022 14:58:43 +0600 Subject: [PATCH 6/8] remove test PR --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f2bd2946730c7..de100d06e065f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Binary-Static Test PR +# Binary-Static This repository contains the static HTML, Javascript, CSS, and images content of the [Binary.com](http://www.binary.com) website. From 5fbaab480379eadd1f5d0d6c1fef0dceb5c08457 Mon Sep 17 00:00:00 2001 From: habib-deriv Date: Mon, 16 Jan 2023 13:42:29 +0600 Subject: [PATCH 7/8] update crowdin cli version --- .github/workflows/sync_crowdin_translations.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/sync_crowdin_translations.yml b/.github/workflows/sync_crowdin_translations.yml index 739bc0383b638..b5e68e6db6065 100644 --- a/.github/workflows/sync_crowdin_translations.yml +++ b/.github/workflows/sync_crowdin_translations.yml @@ -33,7 +33,7 @@ jobs: git config --global user.email "80095553+DerivFE@users.noreply.github.com" echo "Installing Crowdin CLI" - sudo npm i -g @crowdin/cli + sudo npm i -g @crowdin/cli@3.9.1 echo "Installing project dependencies and building the project" npm install npm run build @@ -60,7 +60,7 @@ jobs: # This check also allows a repo admin to disable the Slack message by removing the secret. if [ -n "${{ secrets.TRANSLATIONS_SLACK_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 Binary.com (https://crowdin.com/project/binary-static)."}' ${{ secrets.TRANSLATIONS_SLACK_WEBHOOK }} + curl -X POST -H 'Content-type: application/json' --data '{"text":"There are new or updated strings available for Binary.com (https://crowdin.com/project/binary-static)."}' ${{ secrets.TRANSLACK_WEBHOOK }} fi else echo "No new string detected. Skip uploading messages.pot to Crowdin." @@ -86,14 +86,8 @@ jobs: git commit -m "translations: 📚 sync translations with crowdin" # Force push to this branch in case a previous run created it. - git push --set-upstream origin "$branch_name" -f + git push --set-upstream origin "$branch_name" - sudo apt install gh - gh auth login --with-token <<< ${{ secrets.PERSONAL_ACCESS_TOKEN }} - gh pr close "$branch_name" || true - gh pr create --fill --base "master" --head "binary-com:$branch_name" - - echo "Attempting to merge the PR." - gh pr merge "$branch_name" --admin --squash - echo "**The translation PR has beed merged successfully.**" + # Create a pull request + hub pull-request -b master -h "$branch_name" -m "translations: 📚 sync translations with crowdin" fi From a03f282b40ad172f975d8687aea9b3f2e86d351f Mon Sep 17 00:00:00 2001 From: habib-deriv Date: Mon, 16 Jan 2023 13:46:18 +0600 Subject: [PATCH 8/8] update crowdin cli version --- .github/workflows/sync_crowdin_translations.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sync_crowdin_translations.yml b/.github/workflows/sync_crowdin_translations.yml index b5e68e6db6065..4a9f53f4cccd8 100644 --- a/.github/workflows/sync_crowdin_translations.yml +++ b/.github/workflows/sync_crowdin_translations.yml @@ -60,7 +60,7 @@ jobs: # This check also allows a repo admin to disable the Slack message by removing the secret. if [ -n "${{ secrets.TRANSLATIONS_SLACK_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 Binary.com (https://crowdin.com/project/binary-static)."}' ${{ secrets.TRANSLACK_WEBHOOK }} + curl -X POST -H 'Content-type: application/json' --data '{"text":"There are new or updated strings available for Binary.com (https://crowdin.com/project/binary-static)."}' ${{ secrets.TRANSLATIONS_SLACK_WEBHOOK }} fi else echo "No new string detected. Skip uploading messages.pot to Crowdin." @@ -86,8 +86,14 @@ jobs: git commit -m "translations: 📚 sync translations with crowdin" # Force push to this branch in case a previous run created it. - git push --set-upstream origin "$branch_name" + git push --set-upstream origin "$branch_name" -f - # Create a pull request - hub pull-request -b master -h "$branch_name" -m "translations: 📚 sync translations with crowdin" + sudo apt install gh + gh auth login --with-token <<< ${{ secrets.PERSONAL_ACCESS_TOKEN }} + gh pr close "$branch_name" || true + gh pr create --fill --base "master" --head "binary-com:$branch_name" + + echo "Attempting to merge the PR." + gh pr merge "$branch_name" --admin --squash + echo "**The translation PR has beed merged successfully.**" fi