From b8d80407e031429e349ff7304ed7311b8f258eaf Mon Sep 17 00:00:00 2001 From: dorianim Date: Sun, 6 Apr 2025 15:24:20 +0000 Subject: [PATCH] Feat: set default token to ${{ secrets.GITHUB_TOKEN }} --- action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }}"