mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2025-07-23 14:08:19 +02:00
Chore: set default in action.yml
This commit is contained in:
parent
e96cb854f9
commit
6979495e69
2 changed files with 5 additions and 7 deletions
|
@ -16,6 +16,7 @@ inputs:
|
|||
description: 'SHA of the release'
|
||||
token:
|
||||
description: 'Forgejo application token'
|
||||
default: '${{ secrets.GITHUB_TOKEN }}'
|
||||
release-dir:
|
||||
description: 'Directory in whichs release assets are uploaded or downloaded'
|
||||
required: true
|
||||
|
@ -89,9 +90,6 @@ runs:
|
|||
export HIDE_ARCHIVE_LINK="${{ inputs.hide-archive-link }}"
|
||||
|
||||
export TOKEN="${{ inputs.token }}"
|
||||
if test -z "$TOKEN"; then
|
||||
export TOKEN="${{ secrets.GITHUB_TOKEN }}"
|
||||
fi
|
||||
|
||||
export RELEASE_DIR="${{ inputs.release-dir }}"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue