-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (61 loc) · 2.05 KB
/
copy-dirs.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Copy v1-uk-docs dir to v1-uk-docs-release branch and v1-eu-docs dir to v1-eu-docs-release branch
on:
push:
branches:
- master
workflow_dispatch:
jobs:
copy-v1-uk-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout Source Branch
uses: actions/checkout@v3
with:
ref: master
- name: Copy v1-uk-docs to Temp Directory
run: |
mkdir -p temp-v1-uk-docs
cp -r v1-uk-docs/* temp-v1-uk-docs/
- name: Prepare v1-uk-docs-release Branch
run: |
git fetch origin +refs/heads/v1-uk-docs-release:refs/remotes/origin/v1-uk-docs-release
git checkout v1-uk-docs-release || git checkout --orphan v1-uk-docs-release
- name: Configure Git
run: |
git config user.name "kabhi-stripe"
git config user.email "[email protected]"
- name: Copy from Temp Directory to v1-uk-docs-release
run: |
cp -r temp-v1-uk-docs/* .
git add .
git commit -m "Copy v1-uk-docs to root of v1-uk-docs-release"
- name: Push to v1-uk-docs-release
run: |
git push origin v1-uk-docs-release
copy-v1-eu-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout Source Branch
uses: actions/checkout@v3
with:
ref: master
- name: Copy v1-eu-docs to Temp Directory
run: |
mkdir -p temp-v1-eu-docs
cp -r v1-eu-docs/* temp-v1-eu-docs/
- name: Prepare v1-eu-docs-release Branch
run: |
git fetch origin +refs/heads/v1-eu-docs-release:refs/remotes/origin/v1-eu-docs-release
git checkout v1-eu-docs-release || git checkout --orphan v1-eu-docs-release
- name: Configure Git
run: |
git config user.name "kabhi-stripe"
git config user.email "[email protected]"
- name: Copy from Temp Directory to v1-eu-docs-release
run: |
cp -r temp-v1-eu-docs/* .
git add .
git commit -m "Copy v1-eu-docs to root of v1-eu-docs-release"
- name: Push to v1-eu-docs-release Branch
run: |
git push origin v1-eu-docs-release