Skip to content

Commit

Permalink
fixup! Chore(ci): Check if branch has tag for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Oct 3, 2024
1 parent 50595f8 commit 12d871b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,17 @@ jobs:
- name: Fetch tags
run: git fetch --tags

- run: echo "$(git tag --points-at HEAD)"
- run: git tag --points-at HEAD

- name: Check Tag On Commit
id: checkTagExists
run: |
if [ -n "$(git tag --points-at HEAD)" ]; then
echo "has-tag=true" >> "$GITHUB_OUTPUT"
echo "has-tag=true"
else
echo "has-tag=false" >> "$GITHUB_OUTPUT"
echo "has-tag=false"
fi
- name: Debug
run: echo "$GITHUB_OUTPUT"

- name: Debug2
run: echo "${{ steps.checkTagExists.outputs.has-tag }}"

Expand Down

0 comments on commit 12d871b

Please sign in to comment.