allow downloading 'latest' release

This commit is contained in:
benniekiss 2024-07-05 13:39:58 +00:00 committed by benniekiss
parent de47e391d3
commit a0f138387a

View file

@ -12,6 +12,8 @@ inputs:
description: 'Tag of the release' description: 'Tag of the release'
sha: sha:
description: 'SHA of the release' description: 'SHA of the release'
latest:
description: 'Download the latest release'
token: token:
description: 'Forgejo application token' description: 'Forgejo application token'
required: true required: true
@ -66,6 +68,8 @@ runs:
TAG=${TAG##refs/tags/} TAG=${TAG##refs/tags/}
fi fi
export LATEST="${{ inputs.latest }}"
export PRERELEASE="${{ inputs.prerelease }}" export PRERELEASE="${{ inputs.prerelease }}"
export TOKEN="${{ inputs.token }}" export TOKEN="${{ inputs.token }}"