Make release-dir optional #54
Labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
actions/forgejo-release#54
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
If I want to publish a release without any artifacts added to it, it would be nice if release-dir could be optional.
At the moment my workaround is to create a
release_dirdirectory with an empty file in it, and pass that to the action, which has the downside of adding an empty file as the release artifact.@wetneb, maybe I am missing something, but I have been using
actions/forgejo-release@v2for a long time now withoutrelease_dirspecified and it works exactly as one would expect (release creation without any files being added)I can confirm that the path set in
release-dirmust exist and contain a file. If it does not, this loop in L87-L89 of forgejo-release.shwill expand the glob to a literal
*:which in turn results in
when
tea createis called. You can find an example job of the failure here: https://codeberg.org/janw/podcast-archiver/actions/runs/153#jobstep-3-1To prevent
*expanding to a literal of itself, bash has thenullgloboption:Activating it around the section, will prevent the issue, and make
release-dirtruly optional:Note: this issue also applies to the loop in the
sign_releasefunction.Edit: I opened a PR with a fix: #87 🙂