@marcel91200 / caddy Mirror · read-only / commits / 1b453dd4
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 14, 05:15 UTC

ci: force fetch the upstream tags (#3947)

Mohammed Al Sahaf committed Dec 31, 2020 at 00:02 UTC 1b453dd4fbea2f3a54362fb4c2115bab85cad1b7
1 file changed +13 -4
.github/workflows/release.yml
+13 -4
@@ -22,10 +22,19 @@ jobs:
22
23 - name: Checkout code
24 uses: actions/checkout@v2
25 -
26 - # So GoReleaser can generate the changelog properly
27 - - name: Unshallowify the repo clone
28 - run: git fetch --prune --unshallow
25 + with:
26 + fetch-depth: 0
27 +
28 + # Force fetch upstream tags -- because 65 minutes
29 + # tl;dr: actions/checkout@v2 runs this line:
30 + # git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +ebc278ec98bb24f2852b61fde2a9bf2e3d83818b:refs/tags/
31 + # which makes its own local lightweight tag, losing all the annotations in the process. Our earlier script ran:
32 + # git fetch --prune --unshallow
33 + # which doesn't overwrite that tag because that would be destructive.
34 + # Credit to @francislavoie for the investigation.
35 + # https://github.com/actions/checkout/issues/290#issuecomment-680260080
36 + - name: Force fetch upstream tags
37 + run: git fetch --tags --force
38
39 # https://github.community/t5/GitHub-Actions/How-to-get-just-the-tag-name/m-p/32167/highlight/true#M1027
40 - name: Print Go version and environment