test: 使用不同的執行器

This commit is contained in:
Jeffery
2026-03-20 18:03:42 +08:00
parent 697311db2d
commit fb052a75c4
3 changed files with 9 additions and 14 deletions

View File

@@ -5,12 +5,12 @@ on:
jobs:
cd:
name: "CD > 發布專案"
runs-on: docker
runs-on: ubuntu
steps:
- name: 發布專案
uses: akkuman/gitea-release-action@${{ vars.ACTION_RELEASE_VERSION }}
with:
tag_name: "v0.2.1"
tag_name: "v0.2.2"
- name: 清理舊版本 (保留最新2個)
uses: https://gitea.jsc.idv.tw/actions/cleanup-release@${{ vars.ACTION_CLEANUP_RELEASE_VERSION }}
with:
@@ -19,25 +19,17 @@ jobs:
token: ${{ secrets.GITEA_TOKEN }}
test-calculate:
name: "TEST > 計算版本號"
runs-on: docker
runs-on: ubuntu
needs: cd
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- name: 計算版本號
uses: https://gitea.jsc.idv.tw/actions/calculate-version@v0.2.1
- name: 顯示工作目錄
run: |
echo "工作目錄: $(pwd)"
ls -la $(pwd)
working-directory: ${{ github.workspace }}
- name: 輸出版本號
id: version
run: cat VERSION.txt >> $GITHUB_OUTPUT
working-directory: ${{ github.workspace }}
uses: https://gitea.jsc.idv.tw/actions/calculate-version@v0.2.2
test:
name: "TEST > 測試專案"
runs-on: docker
runs-on: ubuntu
needs: test-calculate
steps:
- name: 顯示版本號