From 3b0e642fb81d454e19c6e929ee3d923112a28765 Mon Sep 17 00:00:00 2001 From: jdebacker Date: Mon, 26 Apr 2021 10:54:19 -0400 Subject: [PATCH 1/6] add action to sync mirror --- .github/workflows/sync_mirror.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/sync_mirror.yml diff --git a/.github/workflows/sync_mirror.yml b/.github/workflows/sync_mirror.yml new file mode 100644 index 0000000..7259920 --- /dev/null +++ b/.github/workflows/sync_mirror.yml @@ -0,0 +1,24 @@ +name: Mirroring + +on: [push, delete] + +jobs: + to_github: + runs-on: ubuntu-18.04 + steps: # <-- must use actions/checkout@v1 before mirroring! + - uses: actions/checkout@v1 + - uses: pixta-dev/repository-mirroring-action@v1 + with: + target_repo_url: + https://github.com/PSLmodels/CorpTax.git + ssh_private_key: # <-- use 'secrets' to pass credential information. + ${{ secrets.GITHUB_SSH_PRIVATE_KEY }} + + to_codecommit: # <-- different jobs are executed in parallel. + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v1 + - uses: pixta-dev/repository-mirroring-action@v1 + with: + target_repo_url: + https://github.com/PSLmodels/CorpTax.git \ No newline at end of file From 3a6975cb7a08dbf48e298ba1da74811cace2b215 Mon Sep 17 00:00:00 2001 From: jdebacker Date: Mon, 26 Apr 2021 14:26:58 -0400 Subject: [PATCH 2/6] add action to sync mirror --- .github/workflows/sync_mirror.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync_mirror.yml b/.github/workflows/sync_mirror.yml index 7259920..af111e5 100644 --- a/.github/workflows/sync_mirror.yml +++ b/.github/workflows/sync_mirror.yml @@ -11,8 +11,8 @@ jobs: with: target_repo_url: https://github.com/PSLmodels/CorpTax.git - ssh_private_key: # <-- use 'secrets' to pass credential information. - ${{ secrets.GITHUB_SSH_PRIVATE_KEY }} + # ssh_private_key: # <-- use 'secrets' to pass credential information. + # ${{ secrets.GITHUB_SSH_PRIVATE_KEY }} to_codecommit: # <-- different jobs are executed in parallel. runs-on: ubuntu-18.04 From 1db4ea26d4aa20c1a185fe7359e22a76211f2bb6 Mon Sep 17 00:00:00 2001 From: jdebacker Date: Mon, 26 Apr 2021 15:16:38 -0400 Subject: [PATCH 3/6] add action to sync mirror --- .github/workflows/sync_mirror.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/sync_mirror.yml b/.github/workflows/sync_mirror.yml index af111e5..e2a1a83 100644 --- a/.github/workflows/sync_mirror.yml +++ b/.github/workflows/sync_mirror.yml @@ -10,15 +10,6 @@ jobs: - uses: pixta-dev/repository-mirroring-action@v1 with: target_repo_url: - https://github.com/PSLmodels/CorpTax.git - # ssh_private_key: # <-- use 'secrets' to pass credential information. - # ${{ secrets.GITHUB_SSH_PRIVATE_KEY }} - - to_codecommit: # <-- different jobs are executed in parallel. - runs-on: ubuntu-18.04 - steps: - - uses: actions/checkout@v1 - - uses: pixta-dev/repository-mirroring-action@v1 - with: - target_repo_url: - https://github.com/PSLmodels/CorpTax.git \ No newline at end of file + git@github.com:PSLmodels/CorpTax.git + ssh_private_key: # <-- use 'secrets' to pass credential information. + ${{ secrets.GITHUB_SSH_PRIVATE_KEY }} From 10f920c5be5b2067efff09e2d885223895b04bbf Mon Sep 17 00:00:00 2001 From: jdebacker Date: Mon, 26 Apr 2021 15:23:12 -0400 Subject: [PATCH 4/6] add action to sync mirror --- .github/workflows/sync_mirror.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync_mirror.yml b/.github/workflows/sync_mirror.yml index e2a1a83..146c67c 100644 --- a/.github/workflows/sync_mirror.yml +++ b/.github/workflows/sync_mirror.yml @@ -11,5 +11,5 @@ jobs: with: target_repo_url: git@github.com:PSLmodels/CorpTax.git - ssh_private_key: # <-- use 'secrets' to pass credential information. - ${{ secrets.GITHUB_SSH_PRIVATE_KEY }} + # ssh_private_key: # <-- use 'secrets' to pass credential information. + # ${{ secrets.GITHUB_SSH_PRIVATE_KEY }} From a99a27c059da9086da61cfa6d1fc352871defbb4 Mon Sep 17 00:00:00 2001 From: jdebacker Date: Mon, 26 Apr 2021 15:29:03 -0400 Subject: [PATCH 5/6] add action to sync mirror --- .github/workflows/sync_mirror.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync_mirror.yml b/.github/workflows/sync_mirror.yml index 146c67c..8e3a089 100644 --- a/.github/workflows/sync_mirror.yml +++ b/.github/workflows/sync_mirror.yml @@ -10,6 +10,6 @@ jobs: - uses: pixta-dev/repository-mirroring-action@v1 with: target_repo_url: - git@github.com:PSLmodels/CorpTax.git + https://github.com/PSLmodels/CorpTax.git # ssh_private_key: # <-- use 'secrets' to pass credential information. # ${{ secrets.GITHUB_SSH_PRIVATE_KEY }} From 36bf5b2d6f5b2e3d39b807ff400e200ca1fd7f57 Mon Sep 17 00:00:00 2001 From: jdebacker Date: Mon, 26 Apr 2021 15:40:01 -0400 Subject: [PATCH 6/6] add action to sync mirror --- .github/workflows/sync_mirror.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sync_mirror.yml b/.github/workflows/sync_mirror.yml index 8e3a089..fbae49c 100644 --- a/.github/workflows/sync_mirror.yml +++ b/.github/workflows/sync_mirror.yml @@ -10,6 +10,6 @@ jobs: - uses: pixta-dev/repository-mirroring-action@v1 with: target_repo_url: - https://github.com/PSLmodels/CorpTax.git - # ssh_private_key: # <-- use 'secrets' to pass credential information. - # ${{ secrets.GITHUB_SSH_PRIVATE_KEY }} + git@github.com:PSLmodels/CorpTax.git + ssh_private_key: # <-- use 'secrets' to pass credential information. + ${{ secrets.SSH_PRIVATE_KEY }}