Skip to content

Commit

Permalink
fix: error returned by listing the contents of the release dir
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored Mar 6, 2023
1 parent ae524b6 commit 6b2d17f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6b2d17f

Please sign in to comment.