Skip to content

Commit

Permalink
fix: bug with empty output for initial releases
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored Mar 2, 2024
1 parent f6d4f03 commit c0bdd29
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ CURRENT_TAG=${3:-$(git tag -l --sort=-version:refname "*.*" | grep -v "$NEW_TAG"
if [[ -z $CURRENT_TAG ]]; then
echo "::warning::Initial release detected unable to determine any tag diff."
echo "::warning::Setting release_type to $INPUT_INITIAL_RELEASE_TYPE."
echo "release_type=$INPUT_INITIAL_RELEASE_TYPE" >> "$GITHUB_OUTPUT"
cat <<EOF >> "$GITHUB_OUTPUT"
release_type=$INPUT_INITIAL_RELEASE_TYPE
old_version=$NEW_TAG
new_version=$NEW_TAG
EOF
exit 0;
fi

Expand Down

0 comments on commit c0bdd29

Please sign in to comment.