From 98e581c7275b48d470c3894129385297102ff4b4 Mon Sep 17 00:00:00 2001 From: Antti Soininen Date: Fri, 30 Aug 2024 08:57:08 +0300 Subject: [PATCH] Fetch tags in case a package is skipped --- .github/workflows/test-n-publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-n-publish.yml b/.github/workflows/test-n-publish.yml index 21ef1f9..e9e9e0c 100644 --- a/.github/workflows/test-n-publish.yml +++ b/.github/workflows/test-n-publish.yml @@ -34,6 +34,7 @@ jobs: repository: 'spine-tools/${{ matrix.pkg }}' path: ${{ matrix.pkg }} ref: ${{ inputs[matrix.pkg] != 'skip' && inputs[matrix.pkg] || 'master' }} + fetch-tags: ${{ inputs[matrix.pkg] == 'skip' }} - name: Ensure Git checkout is not dirty run: cd ${{ matrix.pkg }} && git describe --tags --dirty | grep -vE '[-]dirty$' - name: Ensure Git checkout does not have additional commits