mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2025-07-01 21:43:43 +00:00
feat: add an option to hide archive link
This commit is contained in:
parent
e31d55ec37
commit
5069284121
5 changed files with 21 additions and 8 deletions
|
@ -15,6 +15,7 @@ if ${VERBOSE:-false}; then set -x; fi
|
|||
: ${BIN_DIR:=$TMP_DIR}
|
||||
: ${TEA_VERSION:=0.9.0}
|
||||
: ${OVERRIDE:=false}
|
||||
: ${HIDE_ARCHIVE_LINK:=false}
|
||||
: ${RETRY:=1}
|
||||
: ${DELAY:=10}
|
||||
|
||||
|
@ -69,7 +70,8 @@ release_draft() {
|
|||
local state="$1"
|
||||
|
||||
local id=$(api GET repos/$REPO/releases/tags/$TAG | jq --raw-output .id)
|
||||
api PATCH repos/$REPO/releases/$id --data-raw '{"draft": '$state'}'
|
||||
|
||||
api PATCH repos/$REPO/releases/$id --data-raw '{"draft": '$state', "hide_archive_links": '$HIDE_ARCHIVE_LINK'}'
|
||||
}
|
||||
|
||||
maybe_use_release_note_assistant() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue