From 6b2d17fecb70063229cf0f321c6c3e8fc1e8f5eb Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Mon, 6 Mar 2023 14:34:02 -0700 Subject: [PATCH 1/2] fix: error returned by listing the contents of the release dir --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index d7e83ce..87e10c9 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" From ddbafd22db231912fe65efb5e0b9eb4e358fba57 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Mon, 6 Mar 2023 14:34:41 -0700 Subject: [PATCH 2/2] Update entrypoint.sh Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 87e10c9..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 [ -z "$(ls -A $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"