Skip to content

Commit 26b7644

Browse files
authored
Update entrypoint.sh
1 parent bbe4a5c commit 26b7644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ if [[ -f "$INPUTS_RELEASE_NOTES_FILE" ]]; then
4040
git tag -f "$MAJOR_VERSION" "$NEW_TAG"
4141
git push -f "$INPUTS_REMOTE" "$MAJOR_VERSION"
4242
else
43-
if [ -z "$(ls -A "$RELEASE_ASSETS_DIR")" ]; then
43+
if [[ -n "$(find "$RELEASE_ASSETS_DIR" -type f)" ]]; then
4444
gh release create "$MAJOR_VERSION" --notes-file "$INPUTS_RELEASE_NOTES_FILE" --title "$MAJOR_VERSION" "$RELEASE_ASSETS_DIR"/*
4545
else
4646
gh release create "$MAJOR_VERSION" --notes-file "$INPUTS_RELEASE_NOTES_FILE" --title "$MAJOR_VERSION"

0 commit comments

Comments
 (0)