From a5d7d89b2e26491987d674471e9eb1924e3ea3de Mon Sep 17 00:00:00 2001 From: Gereon Kremer Date: Wed, 12 Jan 2022 16:14:06 -0800 Subject: [PATCH] Fix check whether we have a tag (#7901) This PR fixes a subtle issue with the docs upload for releases. While most of the context of the original action is passed into the docs upload action, the git ref changes from refs/tags/... to refs/heads/.... However, we still can check the current ref against the head_branch of the original workflow. --- .github/workflows/docs_upload.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs_upload.yml b/.github/workflows/docs_upload.yml index 937496d0a..06e207513 100644 --- a/.github/workflows/docs_upload.yml +++ b/.github/workflows/docs_upload.yml @@ -62,7 +62,7 @@ jobs: - name: Setup Context run: | HASH=${{ github.event.workflow_run.head_commit.id }} - ISTAG=${{ startsWith(github.ref, 'refs/tags/') }} + ISTAG=${{ endsWith(github.ref, github.event.workflow_run.head_branch) }} if [ "$ISTAG" = true ] ; then NAME=${{ github.event.workflow_run.head_branch }} echo "Identified tag $NAME" -- 2.30.2