From 6395aa4fbc5c593e31684a24a40c5c28864274ed Mon Sep 17 00:00:00 2001 From: Hamish Coleman Date: Sun, 31 Oct 2021 16:53:49 +0000 Subject: [PATCH] Getting closer, it clearly showed the upstream had a different view than this checkout --- .github/workflows/tests.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 990fad4..6508c65 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -496,8 +496,6 @@ jobs: steps: - uses: actions/checkout@v2 - with: - fetch-depth: 0 # There is something strange with the github runners # normally, `git for-each-ref refs/tags` will show annotated tags @@ -514,7 +512,7 @@ jobs: # We try to build a workaround - name: Get Tag Type run: | - git pull --tags + git pull --tags --force if git cat-file tag $GITHUB_REF; then TYPE=tag; else TYPE=commit; fi echo "::set-output name=TAGTYPE::$TYPE"