summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMohammed Al Sahaf <[email protected]>2020-12-31 00:02:54 +0300
committerGitHub <[email protected]>2020-12-30 21:02:54 +0000
commit1b453dd4fbea2f3a54362fb4c2115bab85cad1b7 (patch)
tree9cb491d6cf65719c0924b4781acb71af99184634
parentebc278ec98bb24f2852b61fde2a9bf2e3d83818b (diff)
downloadcaddy-2.3.0-rc.2.tar.gz
caddy-2.3.0-rc.2.zip
ci: force fetch the upstream tags (#3947)v2.3.0-rc.2v2.3.0
-rw-r--r--.github/workflows/release.yml17
1 files changed, 13 insertions, 4 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index c09f2379a..9273ffb7b 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -22,10 +22,19 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
-
- # So GoReleaser can generate the changelog properly
- - name: Unshallowify the repo clone
- run: git fetch --prune --unshallow
+ with:
+ fetch-depth: 0
+
+ # Force fetch upstream tags -- because 65 minutes
+ # tl;dr: actions/checkout@v2 runs this line:
+ # git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +ebc278ec98bb24f2852b61fde2a9bf2e3d83818b:refs/tags/
+ # which makes its own local lightweight tag, losing all the annotations in the process. Our earlier script ran:
+ # git fetch --prune --unshallow
+ # which doesn't overwrite that tag because that would be destructive.
+ # Credit to @francislavoie for the investigation.
+ # https://github.com/actions/checkout/issues/290#issuecomment-680260080
+ - name: Force fetch upstream tags
+ run: git fetch --tags --force
# https://github.community/t5/GitHub-Actions/How-to-get-just-the-tag-name/m-p/32167/highlight/true#M1027
- name: Print Go version and environment