From 008a54b0cde58a46a7f53250c30897d800177171 Mon Sep 17 00:00:00 2001 From: Carsten Schumann Date: Wed, 20 Aug 2025 10:41:54 +0200 Subject: [PATCH 1/3] Feature: When using the Gitea UI to create an release the fields "name", "body" and "prerelease" are no longer overwritten with empty values. The existing data is used by default. --- action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 75f509d..a3d962e 100644 --- a/action.yml +++ b/action.yml @@ -10,13 +10,14 @@ inputs: body: description: "Note-worthy description of changes in release" required: false + default: ${{ github.release.body }} body_path: description: "Path to load description of changes in this release" required: false name: description: "Gives the release a custom name. Defaults to tag name" required: false - default: ${{ github.ref_name }} + default: ${{ github.event.release.name }} tag_name: description: "Gives a tag name. Defaults to github.GITHUB_REF" required: false @@ -27,6 +28,7 @@ inputs: prerelease: description: "Identify the release as a prerelease. Defaults to false" required: false + default: ${{ github.event.release.prerelease }} files: description: "Newline-delimited list of path globs for asset files to upload" required: false From 05b1004877fdb2d93e5ff1711bbb837b93514b92 Mon Sep 17 00:00:00 2001 From: Carsten Schumann Date: Mon, 20 Oct 2025 11:25:28 +0200 Subject: [PATCH 2/3] Update README --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fadb5d4..61177ce 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ An action to support publishing release to Gitea. +Preserves the fields body, prerelease and name when pushing the release if no value is given. + ## Inputs The following are optional as `step.with` keys @@ -25,7 +27,7 @@ The following are optional as `step.with` keys ## Example usage ```yaml -uses: akkuman/gitea-release-action@v1 +uses: grypho/gitea-release-action@v1.1 env: NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18 with: @@ -41,3 +43,4 @@ If you want to ignore ssl verify error, you can set env `NODE_TLS_REJECT_UNAUTHO - [sigyl-actions/gitea-action-release-asset](https://github.com/sigyl-actions/gitea-action-release-asset) - [actions/release-action: An action written by Golang to support publishing release to Gitea(not Github Actions compatible) - release-action - Gitea: Git with a cup of tea](https://gitea.com/actions/release-action) - [wangyoucao577/go-release-action: Automatically publish Go binaries to Github Release Assets through Github Action.](https://github.com/wangyoucao577/go-release-action) +- [akkuman/gitea-release-action: Base of this fork.](https://github.com/akkuman/gitea-release-action) From 9ca8dcac95bfd7e0cefc3b4576f533e4a95114e1 Mon Sep 17 00:00:00 2001 From: Carsten Schumann Date: Mon, 20 Oct 2025 11:59:36 +0200 Subject: [PATCH 3/3] Bugfix: body_path was ignored because of default body. --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index a3d962e..cf4d15d 100644 --- a/action.yml +++ b/action.yml @@ -1,7 +1,7 @@ --- name: gitea-release-action description: "An action to support publishing release to Gitea." -author: "Akkuman" +author: "Grypho" inputs: server_url: description: the base url of the gitea API @@ -10,7 +10,7 @@ inputs: body: description: "Note-worthy description of changes in release" required: false - default: ${{ github.release.body }} + default: ${{ github.release.body != '' && github.release.body || null }} body_path: description: "Path to load description of changes in this release" required: false