feat: 從工具外部取得 token

This commit is contained in:
Jeffery
2026-03-20 16:16:05 +08:00
parent 9dfb8f1ecb
commit 919886cb55
2 changed files with 6 additions and 3 deletions

View File

@@ -1,6 +1,9 @@
name: 'CALCULATE VERSION'
description: '計算版本號'
author: 'Jeffery'
inputs:
RUNNER_TOKEN:
description: 'Gitea Runner 用來存取的 Tokenex: ${{ secrets.RUNNER_TOKEN }}'
outputs:
VERSION:
description: '計算出的新版本號'
@@ -11,4 +14,4 @@ runs:
env:
GITEA_SERVER_URL: ${{ gitea.server_url }}
GITEA_REPOSITORY: ${{ gitea.repository }}
RUNNER_TOKEN: ${{ secrets.RUNNER_TOKEN }}
RUNNER_TOKEN: ${{ inputs.RUNNER_TOKEN }}