You've already forked gitea-release-action
mirror of
https://gitea.com/actions/gitea-release-action.git
synced 2025-11-14 16:30:21 +07:00
Merge pull request #8 from grypho/main
Feature: Preserve UI fields when creating/uploading a release
This commit is contained in:
@ -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)
|
||||
|
||||
@ -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,13 +10,14 @@ inputs:
|
||||
body:
|
||||
description: "Note-worthy description of changes in release"
|
||||
required: false
|
||||
default: ${{ github.release.body != '' && github.release.body || null }}
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user