feat: 沒有 runner token 也不要出錯
This commit is contained in:
10
action.yaml
10
action.yaml
@@ -1,10 +1,10 @@
|
||||
name: 'CALCULATE VERSION'
|
||||
description: '計算版本號'
|
||||
author: 'Jeffery'
|
||||
inputs:
|
||||
RUNNER_TOKEN:
|
||||
description: 'Gitea Runner 用來存取的 Token,ex: ${{ secrets.RUNNER_TOKEN }}'
|
||||
required: true
|
||||
# inputs:
|
||||
# RUNNER_TOKEN:
|
||||
# description: 'Gitea Runner 用來存取的 Token,ex: ${{ secrets.RUNNER_TOKEN }}'
|
||||
# required: true
|
||||
outputs:
|
||||
VERSION:
|
||||
description: '計算出的新版本號'
|
||||
@@ -15,4 +15,4 @@ runs:
|
||||
env:
|
||||
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
||||
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||
RUNNER_TOKEN: ${{ inputs.RUNNER_TOKEN }}
|
||||
RUNNER_TOKEN: ${{ secrets.RUNNER_TOKEN }}
|
||||
Reference in New Issue
Block a user