From 08c9cc0380f2e80dec40539beb47d48d3da2387d Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Wed, 4 Mar 2020 00:36:43 +0100 Subject: [PATCH 1/4] Try to update GitVersion action from v0.3 to v0.9 (and GitVresion from 5.1.2 to 5.1.3) --- .github/workflows/deployment.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 6f41ae6ee8e..c9c0f62e10d 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -43,7 +43,7 @@ jobs: steps: - name: Checkout source - uses: actions/checkout@v2-beta + uses: actions/checkout@v2 with: fetch-depth: 0 - name: Fetch tags and master for GitVersion @@ -55,12 +55,12 @@ jobs: } shell: pwsh - name: Install GitVersion - uses: gittools/actions/setup-gitversion@v0.3 + uses: gittools/actions/gitversion/setup@v0.9 with: - versionSpec: '5.1.2' + versionSpec: '5.1.3' - name: Run GitVersion id: gitversion - uses: gittools/actions/execute-gitversion@v0.3 + uses: gittools/actions/gitversion/execute@v0.9 - name: Set up JDK uses: actions/setup-java@v1 with: @@ -146,7 +146,7 @@ jobs: needs: [build] steps: - name: Checkout source - uses: actions/checkout@v2-beta + uses: actions/checkout@v2 with: fetch-depth: 0 - name: Fetch tags and master for GitVersion @@ -158,12 +158,12 @@ jobs: } shell: pwsh - name: Install GitVersion - uses: gittools/actions/setup-gitversion@v0.3 + uses: gittools/actions/gitversion/setup@v0.9 with: - versionSpec: '5.1.2' + versionSpec: '5.1.3' - name: Run GitVersion id: gitversion - uses: gittools/actions/execute-gitversion@v0.3 + uses: gittools/actions/gitversion/execute@v0.9 - name: Get linux binaries uses: actions/download-artifact@master with: From 5e4f4fd2ac2b453b76b4e1ee51d60f5933db8932 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Wed, 4 Mar 2020 06:26:37 +0100 Subject: [PATCH 2/4] Try v0.9.1 for gitversion action --- .github/workflows/deployment.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index c9c0f62e10d..ec00b67eb73 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -55,12 +55,12 @@ jobs: } shell: pwsh - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v0.9 + uses: gittools/actions/gitversion/setup@v0.9.1 with: versionSpec: '5.1.3' - name: Run GitVersion id: gitversion - uses: gittools/actions/gitversion/execute@v0.9 + uses: gittools/actions/gitversion/execute@v0.9.1 - name: Set up JDK uses: actions/setup-java@v1 with: @@ -158,12 +158,12 @@ jobs: } shell: pwsh - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v0.9 + uses: gittools/actions/gitversion/setup@v0.9.1 with: versionSpec: '5.1.3' - name: Run GitVersion id: gitversion - uses: gittools/actions/gitversion/execute@v0.9 + uses: gittools/actions/gitversion/execute@v0.9.1 - name: Get linux binaries uses: actions/download-artifact@master with: From 408454265e6da944db8e47b1d0004a9184505839 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Wed, 4 Mar 2020 06:30:52 +0100 Subject: [PATCH 3/4] Try other way to fetch everything --- .github/workflows/deployment.yml | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index ec00b67eb73..330a0bcf14a 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -46,14 +46,8 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 - - name: Fetch tags and master for GitVersion - run: | - git fetch --tags origin - git rev-parse --verify master - if (-not $?) { - git branch --force --create-reflog master origin/master - } - shell: pwsh + - name: Fetch all history for all tags and branches + run: git fetch --prune --unshallow - name: Install GitVersion uses: gittools/actions/gitversion/setup@v0.9.1 with: @@ -149,14 +143,8 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 - - name: Fetch tags and master for GitVersion - run: | - git fetch --tags origin - git rev-parse --verify master - if (-not $?) { - git branch --force --create-reflog master origin/master - } - shell: pwsh + - name: Fetch all history for all tags and branches + run: git fetch --prune --unshallow - name: Install GitVersion uses: gittools/actions/gitversion/setup@v0.9.1 with: From 93ec56dff8d3429d1414fc548b703c67c8c8c9e7 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Wed, 4 Mar 2020 06:34:46 +0100 Subject: [PATCH 4/4] Stick to the manual --- .github/workflows/deployment.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 330a0bcf14a..854f8883b07 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -44,8 +44,6 @@ jobs: steps: - name: Checkout source uses: actions/checkout@v2 - with: - fetch-depth: 0 - name: Fetch all history for all tags and branches run: git fetch --prune --unshallow - name: Install GitVersion @@ -141,8 +139,6 @@ jobs: steps: - name: Checkout source uses: actions/checkout@v2 - with: - fetch-depth: 0 - name: Fetch all history for all tags and branches run: git fetch --prune --unshallow - name: Install GitVersion