Files
nuget-push/action.yaml
T
jiantw83 ac2ea2a9a5 更新 action.yaml
傳入存取權杖
2026-05-06 00:37:37 +00:00

22 lines
736 B
YAML

name: 'NUGET PUSH'
description: '推送 NUGET 套件'
author: 'Jeffery'
inputs:
RELEASE_VERSION:
description: '要推送的版本號,ex: ${{ needs.calculate.outputs.version }}'
required: true
RELEASE_INDEX:
description: '要推送的版本中第幾個成品,預設為 0'
default: 0
RUNNER_TOKEN:
description: '存取權杖'
runs:
using: 'docker'
image: 'Dockerfile'
env:
GITEA_SERVER_URL: ${{ gitea.server_url }}
GITEA_REPOSITORY: ${{ gitea.repository }}
RELEASE_VERSION: ${{ inputs.RELEASE_VERSION }}
RELEASE_INDEX: ${{ inputs.RELEASE_INDEX }}
RUNNER_TOKEN: ${{ inputs.RUNNER_TOKEN || secrets.RUNNER_TOKEN || secrets.GITEA_TOKEN }}
NUGET_AUTHOR: ${{ gitea.repository_owner }}