Skip to content

Commit

Permalink
Merge pull request #7 from stripe/kabhi/add-github-workflow
Browse files Browse the repository at this point in the history
Adds github workflow to copy to release branches
  • Loading branch information
kabhi-stripe authored Nov 21, 2024
2 parents fc958e2 + 377a954 commit f34e4a3
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/copy-dirs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
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

jobs:
copy-v1-uk-docs:
runs-on: ubuntu-latest

steps:
- name: Checkout Source Branch
uses: actions/checkout@v3
with:
ref: master

- 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: Copy v1-uk-docs dir
run: |
cp -r 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: 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: Copy v1-eu-docs dir
run: |
cp -r 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

0 comments on commit f34e4a3

Please sign in to comment.