diff --git a/entrypoint.sh b/entrypoint.sh index d7e83ce..f6bba52 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -40,7 +40,7 @@ if [[ -f "$INPUTS_RELEASE_NOTES_FILE" ]]; then git tag -f "$MAJOR_VERSION" "$NEW_TAG" git push -f "$INPUTS_REMOTE" "$MAJOR_VERSION" else - if ls "$RELEASE_ASSETS_DIR"/*; then + if [ -z "$(ls -A "$RELEASE_ASSETS_DIR")" ]; then gh release create "$MAJOR_VERSION" --notes-file "$INPUTS_RELEASE_NOTES_FILE" --title "$MAJOR_VERSION" "$RELEASE_ASSETS_DIR"/* else gh release create "$MAJOR_VERSION" --notes-file "$INPUTS_RELEASE_NOTES_FILE" --title "$MAJOR_VERSION"