Skip to content

Commit

Permalink
fixing getting latest version if semantic version not detecting anything
Browse files Browse the repository at this point in the history
  • Loading branch information
ajendrosch committed Nov 29, 2024
1 parent 30dd882 commit 8ef4cb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ jobs:
sanitized_branch=$(echo "${branch}" | tr '/' '-')
if [ "${branch}" == "main" ]; then
if [ -z "${{ steps.semantic-release-dry.outputs.VERSION }}" ]; then
VERSION=$(cat output.txt | grep 'Release note for version' | grep -oP '\d+\.\d+\.\d+')
echo "semantic release not detecting a new version, using latest tag"
VERSION=$(git describe --tags --abbrev=0)
else
VERSION=${{ steps.semantic-release-dry.outputs.VERSION }}
fi
Expand Down

0 comments on commit 8ef4cb8

Please sign in to comment.