Feat: set default token to ${{ secrets.GITHUB_TOKEN }}

This commit is contained in:
dorianim 2025-04-06 15:24:20 +00:00
parent 73ed2a76a2
commit b8d80407e0

View file

@ -16,7 +16,6 @@ inputs:
description: 'SHA of the release'
token:
description: 'Forgejo application token'
required: true
release-dir:
description: 'Directory in whichs release assets are uploaded or downloaded'
required: true
@ -90,6 +89,9 @@ 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 }}"