From 3b73e43727ba3f7470a74f3bbb373b951a1a0647 Mon Sep 17 00:00:00 2001 From: Ryan Baxter Date: Thu, 28 Mar 2024 17:38:46 -0400 Subject: [PATCH] Update deploy-docs.yml to checkout tag --- .github/workflows/deploy-docs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 36e2d4a2..558a2b0b 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -30,6 +30,7 @@ jobs: if: github.event.inputs.build-refname run: | git fetch --depth 1 https://github.com/$GITHUB_REPOSITORY ${{ github.event.inputs.build-refname }} + git checkout tags/${{ github.event.inputs.build-refname }} export BUILD_REFNAME=${{ github.event.inputs.build-refname }} echo "BUILD_REFNAME=$BUILD_REFNAME" >> $GITHUB_ENV export BUILD_VERSION=$(git cat-file --textconv FETCH_HEAD:pom.xml | python3 -c "import xml.etree.ElementTree as xml; from sys import stdin; print(xml.parse(stdin).getroot().find('{http://maven.apache.org/POM/4.0.0}version').text)")