Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task: add English file transfer automation #1075

Merged
merged 11 commits into from
Aug 31, 2021
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."
}
}