14
71
Fork
You've already forked meta
4

forgejo-release override #67

Closed
opened 2026年04月17日 23:15:00 +02:00 by kousu · 5 comments

With https://github.com/softprops/action-gh-release I can do on: release and then append builds to the release:

 - name: Publish to Github
 uses: softprops/action-gh-release@v1
 with:
 files: 'dist/*'
 fail_on_unmatched_files: true

With actions/forgejo-release, I am not allowed to upload assets into a pre-existing release (i.e. every and any release triggered by on: release!) by default; it's expecting the releases to be made with on: push: branches: [master] I guess? To allow this, I have to use override:

 - name: Publish to Codeberg
 uses: actions/forgejo-release@v2
 with:
 direction: upload
 override: true
 release-dir: dist/
 sha256sum: true
 token: ${{ secrets.FORGEJO_TOKEN }}

but override also overrides my release notes and, I suppose, any other release assets already manually uploaded before the build finishes.

softprop's more liberal version is more flexible and easy to work with.

Is this the right forum to ask for patches to forgejo-release?

With https://github.com/softprops/action-gh-release I can do `on: release` and then append builds to the release: ``` - name: Publish to Github uses: softprops/action-gh-release@v1 with: files: 'dist/*' fail_on_unmatched_files: true ``` With actions/forgejo-release, I am not allowed to upload assets into a pre-existing release (i.e. every and any release triggered by `on: release`!) by default; it's expecting the releases to be made with `on: push: branches: [master]` I guess? To allow this, I have to use `override`: ``` - name: Publish to Codeberg uses: actions/forgejo-release@v2 with: direction: upload override: true release-dir: dist/ sha256sum: true token: ${{ secrets.FORGEJO_TOKEN }} ``` but `override` _also overrides my release notes_ and, I suppose, any other release assets already manually uploaded before the build finishes. softprop's more liberal version is more flexible and easy to work with. Is this the right forum to ask for patches to forgejo-release?

You may find the development of the forgejo-release action over there: https://code.forgejo.org/actions/forgejo-release/. I suggest you create an issue there (you may login using your Codeberg account).

You may find the development of the `forgejo-release` action over there: https://code.forgejo.org/actions/forgejo-release/. I suggest you create an issue there (you may login using your Codeberg account).
Author
Copy link

Thank you 😅
Turns out there's an existing couple of issues about this ! https://code.forgejo.org/actions/forgejo-release/issues/121

Thank you 😅 Turns out there's an existing couple of issues about this ! https://code.forgejo.org/actions/forgejo-release/issues/121
Owner
Copy link

By the way, why don't you just use github.com/softprops/action-gh-release if it works better for your needs?

By the way, why don't you just use github.com/softprops/action-gh-release if it works better for your needs?
Author
Copy link

To be honest: I assumed it wasn't compatible with Forgejo 😶‍🌫️

To be honest: I assumed it wasn't compatible with Forgejo 😶‍🌫️
Owner
Copy link

A lot of them are. Most of the actions on Forgejo Actions are basically just mirrors of GitHub Actions. It's usually worth a try.

A lot of them are. Most of the actions on Forgejo Actions are basically just mirrors of GitHub Actions. It's usually worth a try.
Sign in to join this conversation.
No Branch/Tag specified
main
No results found.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
actions/meta#67
Reference in a new issue
actions/meta
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?