調整:第三方 action 與工具的版本也從 Gitea 變數取得
ci / test (pull_request) Successful in 4s

This commit is contained in:
bot
2026-11-05 04:44:30 +00:00
parent 87ec8ee1b8
commit d267d4edfe
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ jobs:
|`version`|這次發的版本(跳過時是下一版的預覽,沒有實際推送)| |`version`|這次發的版本(跳過時是下一版的預覽,沒有實際推送)|
|`skip`|`true`=只動文件等檔案,沒有發版| |`skip`|`true`=只動文件等檔案,沒有發版|
內部用的 `next-version` 版本取自呼叫端 repo 的 Gitea 變數 `ACTION_NEXT_VERSION_VERSION`,所以呼叫端要先設好。呼叫端用標籤引用 action(版本取自 Gitea 變數),發版後要把 `ACTION_<名稱>_VERSION` 改成新標籤才會採用。 內部用的版本取自呼叫端 repo 的 Gitea 變數 `ACTION_CHECKOUT_VERSION`、`ACTION_NEXT_VERSION_VERSION`,所以呼叫端要先設好。呼叫端用標籤引用 action(版本取自 Gitea 變數),發版後要把 `ACTION_<名稱>_VERSION` 改成新標籤才會採用。
## 開發與發版 ## 開發與發版
+2 -2
View File
@@ -1,5 +1,5 @@
name: action-cd name: action-cd
description: "action repo 的共用 CD:checkout(PR 來源最新提交)→ next-version 算下一版 → 沒有跳過就打標籤並推送。只動文件、圖示、測試、.gitea/、go.mod 時跳過。內部用的 next-version 版本取自呼叫端的 Gitea 變數 ACTION_NEXT_VERSION_VERSION" description: "action repo 的共用 CD:checkout(PR 來源最新提交)→ next-version 算下一版 → 沒有跳過就打標籤並推送。只動文件、圖示、測試、.gitea/、go.mod 時跳過。內部用的版本取自呼叫端的 Gitea 變數:ACTION_CHECKOUT_VERSION、ACTION_NEXT_VERSION_VERSION"
inputs: inputs:
token: token:
description: "推送標籤用的權杖(需要 write:repository);空=用內建 github.token" description: "推送標籤用的權杖(需要 write:repository);空=用內建 github.token"
@@ -17,7 +17,7 @@ outputs:
runs: runs:
using: composite using: composite
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@${{ vars.ACTION_CHECKOUT_VERSION }}
with: with:
fetch-depth: 0 fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}