mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2025-04-24 18:02:15 +00:00
Feat: set default token to ${{ secrets.GITHUB_TOKEN }}
This commit is contained in:
parent
73ed2a76a2
commit
b8d80407e0
1 changed files with 3 additions and 1 deletions
|
@ -16,7 +16,6 @@ inputs:
|
||||||
description: 'SHA of the release'
|
description: 'SHA of the release'
|
||||||
token:
|
token:
|
||||||
description: 'Forgejo application token'
|
description: 'Forgejo application token'
|
||||||
required: true
|
|
||||||
release-dir:
|
release-dir:
|
||||||
description: 'Directory in whichs release assets are uploaded or downloaded'
|
description: 'Directory in whichs release assets are uploaded or downloaded'
|
||||||
required: true
|
required: true
|
||||||
|
@ -90,6 +89,9 @@ runs:
|
||||||
export HIDE_ARCHIVE_LINK="${{ inputs.hide-archive-link }}"
|
export HIDE_ARCHIVE_LINK="${{ inputs.hide-archive-link }}"
|
||||||
|
|
||||||
export TOKEN="${{ inputs.token }}"
|
export TOKEN="${{ inputs.token }}"
|
||||||
|
if test -z "$TOKEN"; then
|
||||||
|
export TOKEN="${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
fi
|
||||||
|
|
||||||
export RELEASE_DIR="${{ inputs.release-dir }}"
|
export RELEASE_DIR="${{ inputs.release-dir }}"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue