更新 action.yaml

傳入存取權杖
This commit is contained in:
2026-05-06 00:37:37 +00:00
parent ffaea10f44
commit ac2ea2a9a5
+3 -1
View File
@@ -8,6 +8,8 @@ inputs:
RELEASE_INDEX: RELEASE_INDEX:
description: '要推送的版本中第幾個成品,預設為 0' description: '要推送的版本中第幾個成品,預設為 0'
default: 0 default: 0
RUNNER_TOKEN:
description: '存取權杖'
runs: runs:
using: 'docker' using: 'docker'
image: 'Dockerfile' image: 'Dockerfile'
@@ -16,5 +18,5 @@ runs:
GITEA_REPOSITORY: ${{ gitea.repository }} GITEA_REPOSITORY: ${{ gitea.repository }}
RELEASE_VERSION: ${{ inputs.RELEASE_VERSION }} RELEASE_VERSION: ${{ inputs.RELEASE_VERSION }}
RELEASE_INDEX: ${{ inputs.RELEASE_INDEX }} RELEASE_INDEX: ${{ inputs.RELEASE_INDEX }}
RUNNER_TOKEN: ${{ secrets.RUNNER_TOKEN || secrets.GITEA_TOKEN }} RUNNER_TOKEN: ${{ inputs.RUNNER_TOKEN || secrets.RUNNER_TOKEN || secrets.GITEA_TOKEN }}
NUGET_AUTHOR: ${{ gitea.repository_owner }} NUGET_AUTHOR: ${{ gitea.repository_owner }}