From f07a8f11ec03c763f6fa37760f5e749fd130241b Mon Sep 17 00:00:00 2001 From: Charles Wahome Date: Tue, 31 Aug 2021 12:32:05 +0300 Subject: [PATCH] Task: add English file transfer automation (#1075) --- .github/workflows/english-file-transfer.yml | 31 +++++++++++++++++++++ src/messages/GE.json | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/english-file-transfer.yml diff --git a/.github/workflows/english-file-transfer.yml b/.github/workflows/english-file-transfer.yml new file mode 100644 index 000000000..94c673012 --- /dev/null +++ b/.github/workflows/english-file-transfer.yml @@ -0,0 +1,31 @@ +name: English File transfer + +on: + push: + branches: + - dev + paths: + - 'src/messages/GE.json' + +jobs: + copy-file: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set current date as env variable + run: echo "today=$(date +%Y%m%d%H%M)" >> $GITHUB_ENV + + - name: Pushes English file + uses: dmnemec/copy_file_to_another_repo_action@main + env: + API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} + with: + source_file: 'src/messages/GE.json' + destination_repo: 'microsoftgraph/microsoft-graph-devx-content' + destination_folder: 'messages' + destination_branch: 'dev' + user_email: ${{ secrets.ACTION_EMAIL }} + user_name: ${{ secrets.ACTION_USERNAME }} + commit_message: ${{ env.today }} English file transfer diff --git a/src/messages/GE.json b/src/messages/GE.json index 15b497374..a9f33eb8b 100644 --- a/src/messages/GE.json +++ b/src/messages/GE.json @@ -379,4 +379,4 @@ "interaction_required_consent": "Please wait for the consent process to finish and verify that pop-ups are enabled.", "user_cancelled_consent": "Please wait for the consent process to finish.", "access_denied_consent": "Your consent to this permission has been blocked by your tenant admin. Ask your admin to grant you access and then try again." -} +} \ No newline at end of file