Skip to content

Commit 398e876

Browse files
Merge pull request #159 from tj-actions/fix/bug-with-empty-output-for-initial-releases
fix: bug with empty output for initial releases
2 parents f6d4f03 + c0bdd29 commit 398e876

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

entrypoint.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ CURRENT_TAG=${3:-$(git tag -l --sort=-version:refname "*.*" | grep -v "$NEW_TAG"
1717
if [[ -z $CURRENT_TAG ]]; then
1818
echo "::warning::Initial release detected unable to determine any tag diff."
1919
echo "::warning::Setting release_type to $INPUT_INITIAL_RELEASE_TYPE."
20-
echo "release_type=$INPUT_INITIAL_RELEASE_TYPE" >> "$GITHUB_OUTPUT"
20+
cat <<EOF >> "$GITHUB_OUTPUT"
21+
release_type=$INPUT_INITIAL_RELEASE_TYPE
22+
old_version=$NEW_TAG
23+
new_version=$NEW_TAG
24+
EOF
2125
exit 0;
2226
fi
2327

0 commit comments

Comments
 (0)