diff --git a/action.yml b/action.yml index 847c886..d122d6e 100644 --- a/action.yml +++ b/action.yml @@ -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 }}"