mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2025-11-28 02:01:58 +02:00
feat: do not attempt to add assets if release dir is empty or nonexistent
Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
e5e095057a
commit
3e863c83a8
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ upload_release() {
|
|||
# It is expanded using "${assets[@]}" which preserves the separation of arguments and not split whitespace containing values.
|
||||
# For reference, see https://github.com/koalaman/shellcheck/wiki/SC2086#exceptions
|
||||
local assets=()
|
||||
for file in "$RELEASE_DIR"/*; do
|
||||
[ -n "$RELEASE_DIR" ] && [ -d "$RELEASE_DIR" ] && for file in "$RELEASE_DIR"/*; do
|
||||
assets=("${assets[@]}" -a "$file")
|
||||
done
|
||||
if $PRERELEASE || echo "${TAG}" | grep -qi '\-rc'; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue