mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2025-07-05 07:13:43 +00:00
Support downloading the latest release of a repo (#16)
This PR adds the functionality to download the latest release from a repo. The API provides an endpoint to do so, so an option has been added to the action. This closes #12 Co-authored-by: benniekiss <bgmt@mail.bbalm.me> Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/16 Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org> Co-authored-by: benniekiss <benniekiss@noreply.code.forgejo.org> Co-committed-by: benniekiss <benniekiss@noreply.code.forgejo.org>
This commit is contained in:
parent
de47e391d3
commit
a5aa633273
9 changed files with 101 additions and 24 deletions
|
@ -29,6 +29,9 @@ inputs:
|
|||
description: 'Passphrase of the GPG Private Key'
|
||||
download-retry:
|
||||
description: 'Number of times to retry if the release is not ready (default 1)'
|
||||
download-latest:
|
||||
description: 'Download the latest release'
|
||||
default: 'false'
|
||||
verbose:
|
||||
description: 'Increase the verbosity level'
|
||||
default: 'false'
|
||||
|
@ -66,6 +69,8 @@ runs:
|
|||
TAG=${TAG##refs/tags/}
|
||||
fi
|
||||
|
||||
export DOWNLOAD_LATEST="${{ inputs.download-latest }}"
|
||||
|
||||
export PRERELEASE="${{ inputs.prerelease }}"
|
||||
|
||||
export TOKEN="${{ inputs.token }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue