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.
- 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"