From f980b15ecfda7c45400d290707b581d9babdd0c0 Mon Sep 17 00:00:00 2001 From: Daniel Kotik Date: Wed, 28 Dec 2022 17:38:09 +0100 Subject: [PATCH 1/3] Change fetch depth to 0: Default is 1, but with 0 we get all history for all branches and tags. --- .github/workflows/mirror-to-casus.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/mirror-to-casus.yml b/.github/workflows/mirror-to-casus.yml index b5e6ac2d0..f88854906 100644 --- a/.github/workflows/mirror-to-casus.yml +++ b/.github/workflows/mirror-to-casus.yml @@ -7,6 +7,8 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: mirror-repository uses: spyoungtech/mirror-action@v0.4.0 with: From 469e87e3957911c265967a72007daa561b3d03ea Mon Sep 17 00:00:00 2001 From: Daniel Kotik Date: Wed, 28 Dec 2022 17:42:05 +0100 Subject: [PATCH 2/3] Update mirror action --- .github/workflows/mirror-to-casus.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mirror-to-casus.yml b/.github/workflows/mirror-to-casus.yml index f88854906..ec66ab487 100644 --- a/.github/workflows/mirror-to-casus.yml +++ b/.github/workflows/mirror-to-casus.yml @@ -10,7 +10,7 @@ jobs: with: fetch-depth: 0 - name: mirror-repository - uses: spyoungtech/mirror-action@v0.4.0 + uses: spyoungtech/mirror-action@v0.6.0 with: REMOTE: git@github.com:casus/mala.git GIT_SSH_PRIVATE_KEY: ${{ secrets.GIT_SSH_KEY }} From e5c1d4e860e82f43252591b0d755806da9dd8a09 Mon Sep 17 00:00:00 2001 From: Daniel Kotik Date: Wed, 28 Dec 2022 17:50:27 +0100 Subject: [PATCH 3/3] Specify explicitly ssh protocol for remote URL --- .github/workflows/mirror-to-casus.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mirror-to-casus.yml b/.github/workflows/mirror-to-casus.yml index ec66ab487..a231093bc 100644 --- a/.github/workflows/mirror-to-casus.yml +++ b/.github/workflows/mirror-to-casus.yml @@ -12,7 +12,7 @@ jobs: - name: mirror-repository uses: spyoungtech/mirror-action@v0.6.0 with: - REMOTE: git@github.com:casus/mala.git + REMOTE: 'ssh://git@github.com/casus/mala.git' GIT_SSH_PRIVATE_KEY: ${{ secrets.GIT_SSH_KEY }} GIT_SSH_NO_VERIFY_HOST: "true" DEBUG: "true"