Merge pull request #8 from grypho/main

Feature: Preserve UI fields when creating/uploading a release
This commit is contained in:
akkuman
2025-11-07 16:56:49 +09:00
committed by GitHub
2 changed files with 8 additions and 3 deletions

View File

@ -2,6 +2,8 @@
An action to support publishing release to Gitea. 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 ## Inputs
The following are optional as `step.with` keys The following are optional as `step.with` keys
@ -25,7 +27,7 @@ The following are optional as `step.with` keys
## Example usage ## Example usage
```yaml ```yaml
uses: akkuman/gitea-release-action@v1 uses: grypho/gitea-release-action@v1.1
env: env:
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18 NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
with: 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) - [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) - [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) - [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)

View File

@ -1,7 +1,7 @@
--- ---
name: gitea-release-action name: gitea-release-action
description: "An action to support publishing release to Gitea." description: "An action to support publishing release to Gitea."
author: "Akkuman" author: "Grypho"
inputs: inputs:
server_url: server_url:
description: the base url of the gitea API description: the base url of the gitea API
@ -10,13 +10,14 @@ inputs:
body: body:
description: "Note-worthy description of changes in release" description: "Note-worthy description of changes in release"
required: false required: false
default: ${{ github.release.body != '' && github.release.body || null }}
body_path: body_path:
description: "Path to load description of changes in this release" description: "Path to load description of changes in this release"
required: false required: false
name: name:
description: "Gives the release a custom name. Defaults to tag name" description: "Gives the release a custom name. Defaults to tag name"
required: false required: false
default: ${{ github.ref_name }} default: ${{ github.event.release.name }}
tag_name: tag_name:
description: "Gives a tag name. Defaults to github.GITHUB_REF" description: "Gives a tag name. Defaults to github.GITHUB_REF"
required: false required: false
@ -27,6 +28,7 @@ inputs:
prerelease: prerelease:
description: "Identify the release as a prerelease. Defaults to false" description: "Identify the release as a prerelease. Defaults to false"
required: false required: false
default: ${{ github.event.release.prerelease }}
files: files:
description: "Newline-delimited list of path globs for asset files to upload" description: "Newline-delimited list of path globs for asset files to upload"
required: false required: false