Fix escaping, multiline release notes #82

Open
Mynacol wants to merge 3 commits from Mynacol/forgejo-release:main into main
Contributor

I wanted to use this action and encountered multiple bugs. This PR fixes all of them and massively improves the script regarding shellcheck warnings and notices.
Please cherry-pick if you don't want to have everything.

I wanted to use this action and encountered multiple bugs. This PR fixes all of them and massively improves the script regarding shellcheck warnings and notices. Please cherry-pick if you don't want to have everything.
I might have faced a problem caused by multiline release notes.
Irrespective of that, this commit fixes most of the shellcheck warnings.

At the tea invocation, `releaseType` may not be quoted to avoid an empty
argument for stable releases.
To potentially fix the problem:
`Error: ambiguous arguments: provide tagname via --tag or argument, but not both`
Move release notes to the end
Some checks failed
/ integration (pull_request) Has been cancelled
b2fef4bfa0
To avoid issues with complex/multiline release notes.
Owner

release-notes: |
- [User guide](https://forgejo.org/docs/next/user/actions/overview/)
- [Administrator guide](https://forgejo.org/docs/next/admin/actions/)
- [Container images](https://code.forgejo.org/forgejo/-/packages/container/runner/versions)
Release Notes
---
release-notes-assistant: true

is using (indirectly) multiline release notes. Could you please file an issue with a reproducer for the problem you had? Other improvements should be filed as separate pull requests and verified to pass the tests.

https://code.forgejo.org/forgejo/runner/src/commit/7a31b6a55e16ae2ddaf6523e7737ccdaa6d6a316/.forgejo/workflows/publish-release.yml#L40-L49 is using (indirectly) multiline release notes. Could you please file an issue with a reproducer for the problem you had? Other improvements should be filed as separate pull requests and verified to pass the tests.
earl-warren referenced this pull request from a commit 2025-09-10 05:28:14 +00:00
Some checks failed
/ integration (pull_request) Has been cancelled
Required
Details
This pull request has changes conflicting with the target branch.
  • forgejo-release.sh
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u main:Mynacol-main
git switch Mynacol-main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 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/forgejo-release!82
No description provided.