feat: 在外部書出版本號
This commit is contained in:
15
action.yaml
15
action.yaml
@@ -1,23 +1,10 @@
|
||||
name: 'CALCULATE VERSION'
|
||||
description: '計算版本號'
|
||||
author: 'Jeffery'
|
||||
# inputs:
|
||||
# RUNNER_TOKEN:
|
||||
# description: 'Gitea Runner 用來存取的 Token,ex: ${{ secrets.RUNNER_TOKEN }}'
|
||||
# required: true
|
||||
outputs:
|
||||
version:
|
||||
description: '計算出的新版本號'
|
||||
value: ${{ steps.calculate.outputs.version }}
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
||||
env:
|
||||
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
||||
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||
RUNNER_TOKEN: ${{ secrets.RUNNER_TOKEN }}
|
||||
using: 'composite'
|
||||
steps:
|
||||
- name: 將檔案寫到輸出
|
||||
id: calculate
|
||||
run: echo "VERSION.txt" >> $GITHUB_OUTPUT
|
||||
RUNNER_TOKEN: ${{ secrets.RUNNER_TOKEN }}
|
||||
Reference in New Issue
Block a user