Add forgejo-release action #11

Merged
tim merged 1 commit from feat/forgejo-release into main 2026-10-14 11:26:42 +00:00
Owner

Shared composite action replacing the inline "create Forgejo release" job (hass-mcp, omnimem).

  • Notes: the ## [X.Y.Z] section of the changelog (changelog: "" skips). Fails when the section is missing or empty.
  • Appends a "Container images" block with one docker pull <registry>/<owner>/<image>:<version> per image. images is space/newline separated, defaults to the repository name, - for none. Registry derived from github.server_url.
  • Tag keeps the v, image tags do not.
  • prerelease: auto (default, true when the version has a suffix), true, false.
  • Idempotent: an existing release for the tag logs and exits 0 (HTTP 404 = create, other codes fail).
  • dry-run builds and validates the JSON body without calling the API. Outputs: url, payload-file.
  • Runner: debian-latest (curl, jq, awk).

Self-test (test-forgejo-release.yml, fixture fixtures/changelog): section in the middle with a suffix and special characters, section at end of file, no changelog, missing section must fail; payload asserted with jq.
Also verified locally against a mock API: create, re-run, HTTP 500.

Docs: README table, PATTERNS.md "Releases" step 4, release job in templates/docker-release.yml.

🤖 Generated with Claude Code

Shared composite action replacing the inline "create Forgejo release" job (hass-mcp, omnimem). - Notes: the `## [X.Y.Z]` section of the changelog (`changelog: ""` skips). Fails when the section is missing or empty. - Appends a "Container images" block with one `docker pull <registry>/<owner>/<image>:<version>` per image. `images` is space/newline separated, defaults to the repository name, `-` for none. Registry derived from `github.server_url`. - Tag keeps the `v`, image tags do not. - `prerelease`: `auto` (default, true when the version has a suffix), `true`, `false`. - Idempotent: an existing release for the tag logs and exits 0 (HTTP 404 = create, other codes fail). - `dry-run` builds and validates the JSON body without calling the API. Outputs: `url`, `payload-file`. - Runner: `debian-latest` (curl, jq, awk). Self-test (`test-forgejo-release.yml`, fixture `fixtures/changelog`): section in the middle with a suffix and special characters, section at end of file, no changelog, missing section must fail; payload asserted with jq. Also verified locally against a mock API: create, re-run, HTTP 500. Docs: README table, PATTERNS.md "Releases" step 4, release job in `templates/docker-release.yml`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Add forgejo-release action
All checks were successful
test auto-tag / test (pull_request) Successful in 3s
test docker-publish / test (pull_request) Successful in 11s
test forgejo-release / test (pull_request) Successful in 3s
test hassfest / test (pull_request) Successful in 21s
test node-test / test (pull_request) Successful in 9s
test python-test / test (pull_request) Successful in 14s
test security-scan / test (pull_request) Successful in 27s
df0410c3df
Shared replacement for the inline "create Forgejo release" job in
hass-mcp and omnimem: CHANGELOG section as notes (fails when missing),
image pull commands, prerelease auto-detection, idempotent on re-run.
Self-test covers extraction (middle, end of file, missing, no changelog)
and validates the request body as JSON in dry-run mode.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
tim merged commit fcf04adb27 into main 2026-10-14 11:26:42 +00:00
tim deleted branch feat/forgejo-release 2026-10-14 11:26:42 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
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
tim/workflow-basics!11
No description provided.