Skip to content

Commit

Permalink
Merge pull request #8 from stripe/kabhi/fix-worlflow-dir
Browse files Browse the repository at this point in the history
copy to temp dir
  • Loading branch information
kabhi-stripe authored Nov 21, 2024
2 parents f34e4a3 + 4c022b0 commit 362ed92
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/copy-dirs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,19 @@ jobs:
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: Copy v1-uk-docs dir
- name: Copy from Temp Directory to v1-uk-docs-release
run: |
cp -r v1-uk-docs/* .
cp -r temp-v1-uk-docs/* .
git add .
git commit -m "Copy v1-uk-docs to root of v1-uk-docs-release"
Expand All @@ -39,14 +44,19 @@ jobs:
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: Copy v1-eu-docs dir
- name: Copy from Temp Directory to v1-eu-docs-release
run: |
cp -r v1-eu-docs/* .
cp -r temp-v1-eu-docs/* .
git add .
git commit -m "Copy v1-eu-docs to root of v1-eu-docs-release"
Expand Down

0 comments on commit 362ed92

Please sign in to comment.