fix: do not attempt to add assets if release dir is empty or nonexistent #104
No reviewers
Labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
actions/forgejo-release!104
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "crueter/forgejo-release:no-release-dir"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #54
All this does is a quick
-n && -dcheck to see ifa.
release-diris actually set by the userb.
release-diractually exists and has files in itIf
release-dirdoes not exist OR contains no files, we warn the user.Signed-off-by: crueter crueter@eden-emu.dev
feat: do not attempt to add assets if release dir is empty or nonexistentto fix: do not attempt to add assets if release dir is empty or nonexistent@ -90,0 +90,4 @@assets=("${assets[@]}" -a "$file")doneelseecho "Warning: $RELEASE_DIR is empty or nonexistent. No assets will be uploaded."i think it should fail if no assets are found
should be good now
Would be great if this was merged. Currently it is quite annoying to work around this issue.
I think it should fail on empty
release-dir.If you like a different behavior add a new option
allow-empty-release-dirwith is false by defaultView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.