Skip to content

Commit

Permalink
Updated build+release.yml to debug 'git show-ref --tags'
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmhouston committed May 15, 2024
1 parent 9bb1913 commit bf05a17
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build+release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- forkmain
inputs:
releaseVersion:
description: "Version to title release with (like: 1.0rc3)"
description: "Version to title release with (like: 1.0rc3), blank for project's version"
type: string
required: false
isPrerelease:
Expand Down Expand Up @@ -68,11 +68,13 @@ jobs:
echo "- Parsing trigger"
if [[ "${{ github.event_name }}" == workflow_dispatch ]] ; then
if git show-ref --tags v$version --quiet ; then
if git show-ref --tags --verify refs/tags/v$version --quiet ; then
tag="v$version"
echo "- Will build and draft release \"$releaseName\" with matching tag \"$tag\""
else
echo "- Will build and draft untagged release \"$releaseName\" because triggered manually and no tag \"v$version\" was found"
echo "git show-ref --tags | tail -n 4"
git show-ref --tags | tail -n 4
echo "::notice::Will skip notarizing and updating sparkle appcast"
fi
elif [[ "${{ github.ref }}" == refs/tags/* ]] ; then
Expand Down

0 comments on commit bf05a17

Please sign in to comment.