feat: 新增 input 參數,可以讓工具使用者自訂 token

This commit is contained in:
2026-03-21 10:44:18 +08:00
parent e3f3743950
commit 59bc31a756
2 changed files with 4 additions and 2 deletions

View File

@@ -2,6 +2,8 @@ name: 'CLEANUP OLD RELEASES'
description: '清理舊版成品'
author: 'Jeffery'
inputs:
RUNNER_TOKEN:
description: 'GitHub Runner Token'
KEEP_COUNT:
description: '保留的版本數量'
default: '2'
@@ -11,5 +13,5 @@ runs:
env:
GITEA_SERVER_URL: ${{ gitea.server_url }}
GITEA_REPOSITORY: ${{ gitea.repository }}
RUNNER_TOKEN: ${{ secrets.RUNNER_TOKEN }}
RUNNER_TOKEN: ${{ inputs.RUNNER_TOKEN || secrets.RUNNER_TOKEN }}
KEEP_COUNT: ${{ inputs.KEEP_COUNT }}