mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2025-11-28 02:01:58 +02:00
warn
Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
beb58f8488
commit
ecfdcf71d5
1 changed files with 9 additions and 3 deletions
|
|
@ -84,9 +84,15 @@ 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=()
|
||||
[ -n "$RELEASE_DIR" ] && [ -d "$RELEASE_DIR" ] && for file in "$RELEASE_DIR"/*; do
|
||||
if [ -n "$RELEASE_DIR" ] ; then
|
||||
if [ -d "$RELEASE_DIR" ] && [ -n "$(find "$RELEASE_DIR" -mindepth 1 -maxdepth 1)" ]; then
|
||||
for file in "$RELEASE_DIR"/*; do
|
||||
assets=("${assets[@]}" -a "$file")
|
||||
done
|
||||
else
|
||||
echo "Warning: $RELEASE_DIR is empty or nonexistent. No assets will be uploaded."
|
||||
fi
|
||||
fi
|
||||
if $PRERELEASE || echo "${TAG}" | grep -qi '\-rc'; then
|
||||
releaseType="--prerelease"
|
||||
echo "Uploading as Pre-Release"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue