From 23844b4d731660c5c5f537744fd80ab70f9a5634 Mon Sep 17 00:00:00 2001 From: Paras Prajapati Date: Wed, 21 Dec 2022 11:38:19 -0500 Subject: [PATCH 01/24] try checkouts --- .../workflows/sync-internal-and-public.yml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/sync-internal-and-public.yml diff --git a/.github/workflows/sync-internal-and-public.yml b/.github/workflows/sync-internal-and-public.yml new file mode 100644 index 00000000..8d3d7182 --- /dev/null +++ b/.github/workflows/sync-internal-and-public.yml @@ -0,0 +1,29 @@ +name: Sync Internal and Public Repos + +on: + workflow_dispatch: + +jobs: + sync-repos: + name: Sync Internal and Public Repos + steps: + - name: Checkout Public Repo + uses: actions/checkout@v3 + with: + fetch-depth: 0 + token: ${{ secrets.HCP_SDK_PIPELINE_TOKEN }} + path: public + + - name: Checkout Internal Repo + uses: actions/checkout@v3 + with: + token: ${{ secrets.HCP_SDK_PIPELINE_TOKEN }} + repository: hashicorp/hcp-sdk-go-internal + path: internal + + - name: Test Checkouts + run: | + ls + cd .. + ls + From a2fb260a489092dd38e7375c43b10c2ecb4d69bd Mon Sep 17 00:00:00 2001 From: Paras Prajapati Date: Wed, 21 Dec 2022 11:39:52 -0500 Subject: [PATCH 02/24] changelog --- .changelog/157.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/157.txt diff --git a/.changelog/157.txt b/.changelog/157.txt new file mode 100644 index 00000000..4c133b38 --- /dev/null +++ b/.changelog/157.txt @@ -0,0 +1,3 @@ +```release-note:feature +Automatically sync the public and internal repos. +``` \ No newline at end of file From f845a4266920f3eb2e31514c5ea207e331940a97 Mon Sep 17 00:00:00 2001 From: Paras Prajapati Date: Wed, 21 Dec 2022 11:40:51 -0500 Subject: [PATCH 03/24] add pr dispatch --- .github/workflows/sync-internal-and-public.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/sync-internal-and-public.yml b/.github/workflows/sync-internal-and-public.yml index 8d3d7182..32239b64 100644 --- a/.github/workflows/sync-internal-and-public.yml +++ b/.github/workflows/sync-internal-and-public.yml @@ -1,6 +1,7 @@ name: Sync Internal and Public Repos on: + pull_request: workflow_dispatch: jobs: From 6a762e7744fed4f541523a25f2781a2246171f76 Mon Sep 17 00:00:00 2001 From: Paras Prajapati Date: Wed, 21 Dec 2022 11:42:58 -0500 Subject: [PATCH 04/24] add runs on --- .github/workflows/sync-internal-and-public.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/sync-internal-and-public.yml b/.github/workflows/sync-internal-and-public.yml index 32239b64..07412b6b 100644 --- a/.github/workflows/sync-internal-and-public.yml +++ b/.github/workflows/sync-internal-and-public.yml @@ -7,6 +7,7 @@ on: jobs: sync-repos: name: Sync Internal and Public Repos + runs-on: ubuntu-latest steps: - name: Checkout Public Repo uses: actions/checkout@v3 From 245636dc445f9adcc674f0e4ef996a7abde29f6d Mon Sep 17 00:00:00 2001 From: Paras Prajapati Date: Wed, 21 Dec 2022 11:44:58 -0500 Subject: [PATCH 05/24] add logging --- .github/workflows/sync-internal-and-public.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/sync-internal-and-public.yml b/.github/workflows/sync-internal-and-public.yml index 07412b6b..038c814e 100644 --- a/.github/workflows/sync-internal-and-public.yml +++ b/.github/workflows/sync-internal-and-public.yml @@ -25,7 +25,10 @@ jobs: - name: Test Checkouts run: | + echo "-- Current Directory" ls + echo "-- Change Directory Out" cd .. + echo "-- List" ls From 3dba9d52388d1edcb52b4971bd0975d0a877086d Mon Sep 17 00:00:00 2001 From: Paras Prajapati Date: Wed, 21 Dec 2022 13:58:20 -0500 Subject: [PATCH 06/24] add sync --- .../workflows/sync-internal-and-public.yml | 55 ++++++++++++++++--- 1 file changed, 47 insertions(+), 8 deletions(-) diff --git a/.github/workflows/sync-internal-and-public.yml b/.github/workflows/sync-internal-and-public.yml index 038c814e..d5da8176 100644 --- a/.github/workflows/sync-internal-and-public.yml +++ b/.github/workflows/sync-internal-and-public.yml @@ -1,7 +1,6 @@ name: Sync Internal and Public Repos on: - pull_request: workflow_dispatch: jobs: @@ -9,6 +8,13 @@ jobs: name: Sync Internal and Public Repos runs-on: ubuntu-latest steps: + - name: Configure Git + env: + TOKEN: ${{ secrets.HCP_SDK_PIPELINE_TOKEN }} + run: | + git config user.name "hashicorp-cloud" + git config user.email "hashicorp-cloud@hashicorp.com" + - name: Checkout Public Repo uses: actions/checkout@v3 with: @@ -23,12 +29,45 @@ jobs: repository: hashicorp/hcp-sdk-go-internal path: internal - - name: Test Checkouts + - name: Sync Changes run: | - echo "-- Current Directory" - ls - echo "-- Change Directory Out" - cd .. - echo "-- List" - ls + # Make a temp directory for the internal repo + mkdir temp + + # Remove files from public repo + rm -r public/.git public/.github public/.changelog public/clients public/docs public/README.md + ls -al public + + # Copy important files from internal repo + cp -a internal/.git temp/.git + cp -a internal/.github temp/.github + cp -a internal/clients temp/clients + cp -a internal/docs temp/docs + cp internal/README.md temp/README.md + + cp -a public/. internal + cp -a temp/. internal + cd internal + git status + + - name: Create Branch + run: | + cd internal + sync_branch_exists="$(git ls-remote --heads origin sync-public-and-internal-sdk)" + [[ -n $sync_branch_exists ]] && git push origin --delete sync-public-and-internal-sdk + git checkout -b sync-public-and-internal-sdk + git add -a + git commit -m "Sync with public SDK" + git push --set-upstream origin sync-public-and-internal-sdk + + - name: Open PR + run: | + cd internal + gh pr create --title "$PR_TITLE" --body "$PR_BODY" -H "$PR_SOURCE" -B "$PR_TARGET" + env: + PR_TITLE: "[auto] Sync with Public SDK" + PR_BODY: "This is an auto-generated PR created as part of the public SDK pipeline to update the internal SDK." + PR_SOURCE: "sync-public-and-internal-sdk" + PR_TARGET: "main" + GITHUB_TOKEN: ${{ secrets.HCP_SDK_PIPELINE_TOKEN }} From 7115f9cbf8e664893786151f7734e7a9783bb935 Mon Sep 17 00:00:00 2001 From: Paras Prajapati Date: Wed, 21 Dec 2022 14:00:23 -0500 Subject: [PATCH 07/24] refactor --- .github/workflows/sync-internal-and-public.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/sync-internal-and-public.yml b/.github/workflows/sync-internal-and-public.yml index d5da8176..5fc028ca 100644 --- a/.github/workflows/sync-internal-and-public.yml +++ b/.github/workflows/sync-internal-and-public.yml @@ -1,7 +1,6 @@ name: Sync Internal and Public Repos -on: - workflow_dispatch: +on: workflow_dispatch jobs: sync-repos: From 8761e1e288ef5aa0ac7b8023afa91ca72dceed91 Mon Sep 17 00:00:00 2001 From: Paras Prajapati Date: Wed, 21 Dec 2022 14:02:14 -0500 Subject: [PATCH 08/24] change dispatch --- .github/workflows/sync-internal-and-public.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-internal-and-public.yml b/.github/workflows/sync-internal-and-public.yml index 5fc028ca..b461e1bb 100644 --- a/.github/workflows/sync-internal-and-public.yml +++ b/.github/workflows/sync-internal-and-public.yml @@ -1,6 +1,6 @@ name: Sync Internal and Public Repos -on: workflow_dispatch +on: pull_request jobs: sync-repos: From aa16cb6b6a840dff7c7d0a2eba2ca545caa30d73 Mon Sep 17 00:00:00 2001 From: Paras Prajapati Date: Wed, 21 Dec 2022 14:04:27 -0500 Subject: [PATCH 09/24] configure git --- .github/workflows/sync-internal-and-public.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/sync-internal-and-public.yml b/.github/workflows/sync-internal-and-public.yml index b461e1bb..56af0e7b 100644 --- a/.github/workflows/sync-internal-and-public.yml +++ b/.github/workflows/sync-internal-and-public.yml @@ -7,13 +7,6 @@ jobs: name: Sync Internal and Public Repos runs-on: ubuntu-latest steps: - - name: Configure Git - env: - TOKEN: ${{ secrets.HCP_SDK_PIPELINE_TOKEN }} - run: | - git config user.name "hashicorp-cloud" - git config user.email "hashicorp-cloud@hashicorp.com" - - name: Checkout Public Repo uses: actions/checkout@v3 with: @@ -53,6 +46,8 @@ jobs: - name: Create Branch run: | cd internal + git config user.name "HashiCorp Cloud Services" + git config user.email "${{ secrets.HCP_SERVICE_ACCOUNT_EMAIL }}" sync_branch_exists="$(git ls-remote --heads origin sync-public-and-internal-sdk)" [[ -n $sync_branch_exists ]] && git push origin --delete sync-public-and-internal-sdk git checkout -b sync-public-and-internal-sdk From 528112198ff82e2a23ed022e9d5e6d3f49748334 Mon Sep 17 00:00:00 2001 From: Paras Prajapati Date: Wed, 21 Dec 2022 14:09:21 -0500 Subject: [PATCH 10/24] sudo --- .github/workflows/sync-internal-and-public.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync-internal-and-public.yml b/.github/workflows/sync-internal-and-public.yml index 56af0e7b..de9e363c 100644 --- a/.github/workflows/sync-internal-and-public.yml +++ b/.github/workflows/sync-internal-and-public.yml @@ -31,14 +31,14 @@ jobs: ls -al public # Copy important files from internal repo - cp -a internal/.git temp/.git + sudo cp -a internal/.git temp/.git cp -a internal/.github temp/.github cp -a internal/clients temp/clients cp -a internal/docs temp/docs cp internal/README.md temp/README.md cp -a public/. internal - cp -a temp/. internal + sudo cp -a temp/. internal cd internal git status From 93d241c0235cf6f7643a448fa08918026f984756 Mon Sep 17 00:00:00 2001 From: Paras Prajapati Date: Wed, 21 Dec 2022 14:11:05 -0500 Subject: [PATCH 11/24] capital A --- .github/workflows/sync-internal-and-public.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-internal-and-public.yml b/.github/workflows/sync-internal-and-public.yml index de9e363c..d4bfda1e 100644 --- a/.github/workflows/sync-internal-and-public.yml +++ b/.github/workflows/sync-internal-and-public.yml @@ -51,7 +51,7 @@ jobs: sync_branch_exists="$(git ls-remote --heads origin sync-public-and-internal-sdk)" [[ -n $sync_branch_exists ]] && git push origin --delete sync-public-and-internal-sdk git checkout -b sync-public-and-internal-sdk - git add -a + git add -A git commit -m "Sync with public SDK" git push --set-upstream origin sync-public-and-internal-sdk From 1e11f26b040494024d61db886b2840bf1dcddbcb Mon Sep 17 00:00:00 2001 From: Paras Prajapati Date: Wed, 21 Dec 2022 14:20:15 -0500 Subject: [PATCH 12/24] change to workflow dispatch --- .github/workflows/sync-internal-and-public.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-internal-and-public.yml b/.github/workflows/sync-internal-and-public.yml index d4bfda1e..505972ac 100644 --- a/.github/workflows/sync-internal-and-public.yml +++ b/.github/workflows/sync-internal-and-public.yml @@ -1,6 +1,6 @@ name: Sync Internal and Public Repos -on: pull_request +on: workflow_dispatch jobs: sync-repos: From b47c6c2848e5e6a0e14265e924081455be2a4894 Mon Sep 17 00:00:00 2001 From: Paras Prajapati Date: Wed, 21 Dec 2022 14:30:00 -0500 Subject: [PATCH 13/24] reset internal directory --- .github/workflows/sync-internal-and-public.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync-internal-and-public.yml b/.github/workflows/sync-internal-and-public.yml index 505972ac..57d93374 100644 --- a/.github/workflows/sync-internal-and-public.yml +++ b/.github/workflows/sync-internal-and-public.yml @@ -1,6 +1,6 @@ name: Sync Internal and Public Repos -on: workflow_dispatch +on: pull_request jobs: sync-repos: @@ -27,7 +27,7 @@ jobs: mkdir temp # Remove files from public repo - rm -r public/.git public/.github public/.changelog public/clients public/docs public/README.md + rm -r public/.git public/.changelog public/.github public/clients public/docs public/README.md ls -al public # Copy important files from internal repo @@ -37,6 +37,10 @@ jobs: cp -a internal/docs temp/docs cp internal/README.md temp/README.md + rm -r internal + mkdir internal + + # Sync public with internal cp -a public/. internal sudo cp -a temp/. internal From 2c8f371de69321537e7f224481a2b2a3280e717c Mon Sep 17 00:00:00 2001 From: Paras Prajapati Date: Wed, 21 Dec 2022 14:33:51 -0500 Subject: [PATCH 14/24] save doc stuff --- .github/workflows/sync-internal-and-public.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/sync-internal-and-public.yml b/.github/workflows/sync-internal-and-public.yml index 57d93374..92deef20 100644 --- a/.github/workflows/sync-internal-and-public.yml +++ b/.github/workflows/sync-internal-and-public.yml @@ -36,6 +36,8 @@ jobs: cp -a internal/clients temp/clients cp -a internal/docs temp/docs cp internal/README.md temp/README.md + cp internal/catalog.yml temp/catalog.yml + cp internal/mkdocs.yml temp/mkdocs.yml rm -r internal mkdir internal From c4a9ec274e2707d0d6578d1d936266800ab0da0b Mon Sep 17 00:00:00 2001 From: Paras Prajapati Date: Wed, 21 Dec 2022 14:34:50 -0500 Subject: [PATCH 15/24] typo --- .github/workflows/sync-internal-and-public.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-internal-and-public.yml b/.github/workflows/sync-internal-and-public.yml index 92deef20..cbdfe896 100644 --- a/.github/workflows/sync-internal-and-public.yml +++ b/.github/workflows/sync-internal-and-public.yml @@ -36,7 +36,7 @@ jobs: cp -a internal/clients temp/clients cp -a internal/docs temp/docs cp internal/README.md temp/README.md - cp internal/catalog.yml temp/catalog.yml + cp internal/catalog-info.yml temp/catalog-info.yml cp internal/mkdocs.yml temp/mkdocs.yml rm -r internal From 840e13f97a238001b4ff2687e85e5ba07feeb1aa Mon Sep 17 00:00:00 2001 From: Paras Prajapati Date: Wed, 21 Dec 2022 14:35:57 -0500 Subject: [PATCH 16/24] yaml not yml --- .github/workflows/sync-internal-and-public.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-internal-and-public.yml b/.github/workflows/sync-internal-and-public.yml index cbdfe896..4d1327ff 100644 --- a/.github/workflows/sync-internal-and-public.yml +++ b/.github/workflows/sync-internal-and-public.yml @@ -36,7 +36,7 @@ jobs: cp -a internal/clients temp/clients cp -a internal/docs temp/docs cp internal/README.md temp/README.md - cp internal/catalog-info.yml temp/catalog-info.yml + cp internal/catalog-info.yaml temp/catalog-info.yaml cp internal/mkdocs.yml temp/mkdocs.yml rm -r internal From ee71355329b80057c22d27d572a384e980a99d7c Mon Sep 17 00:00:00 2001 From: Paras Prajapati Date: Tue, 3 Jan 2023 16:24:00 -0500 Subject: [PATCH 17/24] dispatch on successful release --- .github/workflows/sync-internal-and-public.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync-internal-and-public.yml b/.github/workflows/sync-internal-and-public.yml index 4d1327ff..4f104932 100644 --- a/.github/workflows/sync-internal-and-public.yml +++ b/.github/workflows/sync-internal-and-public.yml @@ -1,6 +1,11 @@ name: Sync Internal and Public Repos -on: pull_request +on: + workflow_dispatch: + workflow_run: + workflows: ["Create Release"] + types: + - completed jobs: sync-repos: From aa1465d2b01fdf63fa23efdbfbbf171af33b69a2 Mon Sep 17 00:00:00 2001 From: Paras Prajapati <15036233+paraspraj@users.noreply.github.com> Date: Wed, 4 Jan 2023 10:21:12 -0500 Subject: [PATCH 18/24] Update .github/workflows/sync-internal-and-public.yml Co-authored-by: Brenna Hewer-Darroch <21015366+bcmdarroch@users.noreply.github.com> --- .github/workflows/sync-internal-and-public.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-internal-and-public.yml b/.github/workflows/sync-internal-and-public.yml index 4f104932..bc0f8eb5 100644 --- a/.github/workflows/sync-internal-and-public.yml +++ b/.github/workflows/sync-internal-and-public.yml @@ -72,7 +72,7 @@ jobs: gh pr create --title "$PR_TITLE" --body "$PR_BODY" -H "$PR_SOURCE" -B "$PR_TARGET" env: PR_TITLE: "[auto] Sync with Public SDK" - PR_BODY: "This is an auto-generated PR created as part of the public SDK pipeline to update the internal SDK." + PR_BODY: "This is an auto-generated PR updating the internal SDK with the latest changes from the open source SDK. Client changes are excluded." PR_SOURCE: "sync-public-and-internal-sdk" PR_TARGET: "main" GITHUB_TOKEN: ${{ secrets.HCP_SDK_PIPELINE_TOKEN }} From d5bc2155df4babc13e3a5f044bcc7e54dc60eb02 Mon Sep 17 00:00:00 2001 From: Paras Prajapati Date: Wed, 4 Jan 2023 14:27:57 -0500 Subject: [PATCH 19/24] retain script --- .github/workflows/sync-internal-and-public.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync-internal-and-public.yml b/.github/workflows/sync-internal-and-public.yml index 4f104932..424c1bfe 100644 --- a/.github/workflows/sync-internal-and-public.yml +++ b/.github/workflows/sync-internal-and-public.yml @@ -1,6 +1,7 @@ name: Sync Internal and Public Repos on: + pull_request: workflow_dispatch: workflow_run: workflows: ["Create Release"] @@ -32,7 +33,7 @@ jobs: mkdir temp # Remove files from public repo - rm -r public/.git public/.changelog public/.github public/clients public/docs public/README.md + rm -r public/.git public/.changelog public/.github public/clients public/docs public/README.md public/scripts/gen-go-service-sdk.sh ls -al public # Copy important files from internal repo @@ -43,6 +44,7 @@ jobs: cp internal/README.md temp/README.md cp internal/catalog-info.yaml temp/catalog-info.yaml cp internal/mkdocs.yml temp/mkdocs.yml + cp internal/scripts/gen-go-service-sdk.sh temp/scripts/gen-go-service-sdk.sh rm -r internal mkdir internal From 941043664288c7d3c510fda96132f7cfd9cbafee Mon Sep 17 00:00:00 2001 From: Paras Prajapati Date: Wed, 4 Jan 2023 14:51:06 -0500 Subject: [PATCH 20/24] don't resync --- .github/workflows/sync-internal-and-public.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/sync-internal-and-public.yml b/.github/workflows/sync-internal-and-public.yml index 9ab7f1ec..c8eee570 100644 --- a/.github/workflows/sync-internal-and-public.yml +++ b/.github/workflows/sync-internal-and-public.yml @@ -44,7 +44,6 @@ jobs: cp internal/README.md temp/README.md cp internal/catalog-info.yaml temp/catalog-info.yaml cp internal/mkdocs.yml temp/mkdocs.yml - cp internal/scripts/gen-go-service-sdk.sh temp/scripts/gen-go-service-sdk.sh rm -r internal mkdir internal From 084f4b1fd8f98a03694eff2601a21f10c42a1465 Mon Sep 17 00:00:00 2001 From: Paras Prajapati Date: Wed, 4 Jan 2023 15:05:35 -0500 Subject: [PATCH 21/24] omit pull_request trigger --- .github/workflows/sync-internal-and-public.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/sync-internal-and-public.yml b/.github/workflows/sync-internal-and-public.yml index c8eee570..8372abf4 100644 --- a/.github/workflows/sync-internal-and-public.yml +++ b/.github/workflows/sync-internal-and-public.yml @@ -1,7 +1,6 @@ name: Sync Internal and Public Repos on: - pull_request: workflow_dispatch: workflow_run: workflows: ["Create Release"] From a868cd5aaeae9f38d1dd7ecdd5dc4855d4948c92 Mon Sep 17 00:00:00 2001 From: Paras Prajapati Date: Wed, 4 Jan 2023 15:20:02 -0500 Subject: [PATCH 22/24] regen with scripts --- .github/workflows/sync-internal-and-public.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync-internal-and-public.yml b/.github/workflows/sync-internal-and-public.yml index 8372abf4..82e43bca 100644 --- a/.github/workflows/sync-internal-and-public.yml +++ b/.github/workflows/sync-internal-and-public.yml @@ -1,6 +1,7 @@ name: Sync Internal and Public Repos on: + pull_request: workflow_dispatch: workflow_run: workflows: ["Create Release"] @@ -32,7 +33,7 @@ jobs: mkdir temp # Remove files from public repo - rm -r public/.git public/.changelog public/.github public/clients public/docs public/README.md public/scripts/gen-go-service-sdk.sh + rm -r public/.git public/.changelog public/.github public/clients public/docs public/README.md public/scripts ls -al public # Copy important files from internal repo @@ -40,6 +41,7 @@ jobs: cp -a internal/.github temp/.github cp -a internal/clients temp/clients cp -a internal/docs temp/docs + cp -a internal/scripts temp/scripts cp internal/README.md temp/README.md cp internal/catalog-info.yaml temp/catalog-info.yaml cp internal/mkdocs.yml temp/mkdocs.yml From 8a7ba0ef1495af2af22792d7250860b50b6062fe Mon Sep 17 00:00:00 2001 From: Paras Prajapati Date: Wed, 4 Jan 2023 15:21:29 -0500 Subject: [PATCH 23/24] remove pr trigger --- .github/workflows/sync-internal-and-public.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/sync-internal-and-public.yml b/.github/workflows/sync-internal-and-public.yml index 82e43bca..48219f6e 100644 --- a/.github/workflows/sync-internal-and-public.yml +++ b/.github/workflows/sync-internal-and-public.yml @@ -1,7 +1,6 @@ name: Sync Internal and Public Repos on: - pull_request: workflow_dispatch: workflow_run: workflows: ["Create Release"] From b858067330671060dbf36a61885b6c6bffcee7a5 Mon Sep 17 00:00:00 2001 From: Paras Prajapati <15036233+paraspraj@users.noreply.github.com> Date: Wed, 4 Jan 2023 16:05:00 -0500 Subject: [PATCH 24/24] Update .github/workflows/sync-internal-and-public.yml Co-authored-by: Brenna Hewer-Darroch <21015366+bcmdarroch@users.noreply.github.com> --- .github/workflows/sync-internal-and-public.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-internal-and-public.yml b/.github/workflows/sync-internal-and-public.yml index 48219f6e..aec269f1 100644 --- a/.github/workflows/sync-internal-and-public.yml +++ b/.github/workflows/sync-internal-and-public.yml @@ -35,7 +35,7 @@ jobs: rm -r public/.git public/.changelog public/.github public/clients public/docs public/README.md public/scripts ls -al public - # Copy important files from internal repo + # Copy files that should not be changed in internal repo sudo cp -a internal/.git temp/.git cp -a internal/.github temp/.github cp -a internal/clients temp/clients