Skip to content

Commit

Permalink
Task: add English file transfer automation (#1075)
Browse files Browse the repository at this point in the history
  • Loading branch information
thewahome authored Aug 31, 2021
1 parent 78aab92 commit f07a8f1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/english-file-transfer.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion src/messages/GE.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}

0 comments on commit f07a8f1

Please sign in to comment.