From c14571af27d56ed11d4b8ac9d2e880314f5647b6 Mon Sep 17 00:00:00 2001 From: Oscar Esteban Date: Sun, 6 Dec 2020 08:00:02 -0800 Subject: [PATCH] fix(gh-action): do not fetch all tags if this is a tag --- .github/workflows/pythonpackage.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 9d14f47ebd2..acdc22956b8 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -30,6 +30,7 @@ jobs: with: ssh-key: "${{ secrets.NIPREPS_DEPLOY }}" - name: Fetch all tags (for versioneer to work) + if: "!startsWith(github.ref, 'refs/tags/')" run: | /usr/bin/git -c protocol.version=2 fetch --tags --prune --unshallow origin - name: Build in confined, updated environment and interpolate version