feat: 在外部書出版本號 #33
@@ -10,7 +10,7 @@ jobs:
|
||||
- name: 發布專案
|
||||
uses: akkuman/gitea-release-action@${{ vars.ACTION_RELEASE_VERSION }}
|
||||
with:
|
||||
tag_name: "v0.1.6"
|
||||
tag_name: "v0.1.7"
|
||||
- name: 清理舊版本 (保留最新2個)
|
||||
uses: https://gitea.jsc.idv.tw/actions/cleanup-release@${{ vars.ACTION_CLEANUP_RELEASE_VERSION }}
|
||||
with:
|
||||
@@ -25,8 +25,10 @@ jobs:
|
||||
version: ${{ steps.version.outputs.version }}
|
||||
steps:
|
||||
- name: 計算版本號
|
||||
uses: https://gitea.jsc.idv.tw/actions/calculate-version@v0.1.7
|
||||
- name: 輸出版本號
|
||||
id: version
|
||||
uses: https://gitea.jsc.idv.tw/actions/calculate-version@v0.1.6
|
||||
run: echo "VERSION.txt" >> $GITHUB_OUTPUT
|
||||
test:
|
||||
name: "TEST > 測試專案"
|
||||
runs-on: docker
|
||||
|
||||
13
action.yaml
13
action.yaml
@@ -1,14 +1,6 @@
|
||||
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'
|
||||
@@ -16,8 +8,3 @@ runs:
|
||||
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
|
||||
Reference in New Issue
Block a user