Skip to content

Commit f34e4a3

Browse files
authored
Merge pull request #7 from stripe/kabhi/add-github-workflow
Adds github workflow to copy to release branches
2 parents fc958e2 + 377a954 commit f34e4a3

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/copy-dirs.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Copy v1-uk-docs dir to v1-uk-docs-release branch and v1-eu-docs dir to v1-eu-docs-release branch
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
copy-v1-uk-docs:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout Source Branch
14+
uses: actions/checkout@v3
15+
with:
16+
ref: master
17+
18+
- name: Prepare v1-uk-docs-release Branch
19+
run: |
20+
git fetch origin +refs/heads/v1-uk-docs-release:refs/remotes/origin/v1-uk-docs-release
21+
git checkout v1-uk-docs-release || git checkout --orphan v1-uk-docs-release
22+
23+
- name: Copy v1-uk-docs dir
24+
run: |
25+
cp -r v1-uk-docs/* .
26+
git add .
27+
git commit -m "Copy v1-uk-docs to root of v1-uk-docs-release"
28+
29+
- name: Push to v1-uk-docs-release
30+
run: |
31+
git push origin v1-uk-docs-release
32+
33+
copy-v1-eu-docs:
34+
runs-on: ubuntu-latest
35+
36+
steps:
37+
- name: Checkout Source Branch
38+
uses: actions/checkout@v3
39+
with:
40+
ref: master
41+
42+
- name: Prepare v1-eu-docs-release Branch
43+
run: |
44+
git fetch origin +refs/heads/v1-eu-docs-release:refs/remotes/origin/v1-eu-docs-release
45+
git checkout v1-eu-docs-release || git checkout --orphan v1-eu-docs-release
46+
47+
- name: Copy v1-eu-docs dir
48+
run: |
49+
cp -r v1-eu-docs/* .
50+
git add .
51+
git commit -m "Copy v1-eu-docs to root of v1-eu-docs-release"
52+
53+
- name: Push to v1-eu-docs-release Branch
54+
run: |
55+
git push origin v1-eu-docs-release

0 commit comments

Comments
 (0)