-
Notifications
You must be signed in to change notification settings - Fork 46
38 lines (33 loc) · 1.14 KB
/
handover-translations.yml
File metadata and controls
38 lines (33 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Hand over translation files
on:
push:
branches:
- dev
paths:
- 'messages/**'
- '!messages/GE.json'
- '.github/workflows/handover-translations.yml'
jobs:
pull-request:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
- name: Set current date as env variable
run: echo "today=$(date +%Y%m%d%H%M)" >> $GITHUB_ENV
- name: Create folder
run: |
mkdir -p messages/translated-content && cp messages/GE_* messages/translated-content/
ls messages/translated-content
- name: Create pull request to handover translations
uses: paygoc6/action-pull-request-another-repo@v1.0.1
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source_folder: 'messages/translated-content/**'
destination_repo: 'microsoftgraph/microsoft-graph-explorer-v4'
destination_folder: 'src/messages'
destination_base_branch: 'dev'
destination_head_branch: chore/handover-translations-${{ env.today }}
user_email: ${{ secrets.ACTION_EMAIL }}
user_name: ${{ secrets.ACTION_USERNAME }}