feat: resolve gitea token sources

This commit is contained in:
2026-05-15 01:46:46 +00:00
parent c7584316ba
commit 19e863e0aa
3 changed files with 55 additions and 20 deletions
+7 -11
View File
@@ -1,20 +1,16 @@
name: 'Docker Action Template'
description: 'Docker Action 範本'
name: 'CLEANUP OLD NUGET'
description: '清理 Nuget 沒用到的資源'
author: 'Jeffery'
inputs:
runner_token:
description: 'Gitea Runner Token'
required: true
text:
description: '輸入的文字'
default: "Hello, World!"
outputs:
text:
description: '輸出的文字'
description: 'Gitea API token, highest priority source'
required: false
runs:
using: 'docker'
image: 'Dockerfile'
env:
GITEA_SERVER_URL: ${{ gitea.server_url }}
GITEA_REPOSITORY: ${{ gitea.repository }}
RUNNER_TOKEN: ${{ inputs.runner_token || secrets.GITEA_TOKEN || secrets.RUNNER_TOKEN }}
INPUT_RUNNER_TOKEN: ${{ inputs.runner_token }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
RUNNER_TOKEN_SECRET: ${{ secrets.RUNNER_TOKEN }}