Skip to content

Commit

Permalink
fix: Remove quotes from tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
Lissy93 committed Jul 30, 2024
1 parent 2e37b5f commit 7c02aca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,16 @@ jobs:
# If workflow was triggered by the tag workflow, use the new tag
if [ "$GITHUB_EVENT_NAME" == "workflow_run" ]; then
if [[ -n "${{ github.event.workflow_run.outputs.new_tag }}" ]]; then
TAG_NAME="${{ github.event.workflow_run.outputs.new_tag }}"
TAG_NAME=${{ github.event.workflow_run.outputs.new_tag }}
elif [[ -f tag.txt ]]; then
TAG_NAME=$(cat tag.txt)
fi
# If workflow was triggered by a push event, use the tag from the ref
elif [[ "$GITHUB_EVENT_NAME" == "push" && "${{ github.ref_type }}" == "tag" ]]; then
TAG_NAME="${{ github.ref }}"
TAG_NAME=${{ github.ref }}
fi
echo "Using tag $TAG_NAME"
echo "TAG_NAME=\"$TAG_NAME\"" >> $GITHUB_ENV
echo "TAG_NAME=\$TAG_NAME\" >> $GITHUB_ENV

- name: 🔍 Check if release already exists
Expand All @@ -102,7 +102,7 @@ jobs:
echo "Release for tag $TAG_NAME already exists."
exit 1
else
echo "Tag is present, valid and no existing releases exist. Continuing...."
echo "Tag is present, valid and no existing releases exist ($TAG_NAME). Continuing...."
fi
- name: 📤 Download PDF artifact
Expand Down

0 comments on commit 7c02aca

Please sign in to comment.