調整:第三方 action 與工具的版本也從 Gitea 變數取得 #2

Merged
admin merged 2 commits from chore/third-party-versions into main 2026-11-05 04:56:02 +00:00
Member

Summary

第三方 action 與工具的版本也從 Gitea 變數取得,不再寫死。

-uses: actions/checkout@v4
+uses: actions/checkout@${{ vars.ACTION_CHECKOUT_VERSION }}

涉及:checkout(action-ci/action-cd/ci-run)、cache(ci-cache,ACTION_CACHE_VERSION)、shellcheck 本身(TOOL_SHELLCHECK_VERSION,shellcheck action 改成執行時依 version 輸入下載,Docker 建置讀不到 Gitea 變數)。

Evidence

  • shellcheck entrypoint 本機實測:下載指定版本並檢查、沒有符合的檔案時不下載、缺版本與版本不存在都有明確錯誤。
  • 需要組織變數:ACTION_CHECKOUT_VERSION=v4、ACTION_CACHE_VERSION=v4、TOOL_SHELLCHECK_VERSION=v0.10.0;沒設時 CI 會因為 uses 的版本是空的而失敗。

Merge Danger

Door: two-way

Blast Radius: action 發版

合併後 cd 會發新標籤(有程式變更的 repo);呼叫端要把 ACTION_<名稱>_VERSION 改成新標籤才會採用。

🤖 Generated with Claude Code

## Summary 第三方 action 與工具的版本也從 Gitea 變數取得,不再寫死。 ```diff -uses: actions/checkout@v4 +uses: actions/checkout@${{ vars.ACTION_CHECKOUT_VERSION }} ``` 涉及:checkout(action-ci/action-cd/ci-run)、cache(ci-cache,`ACTION_CACHE_VERSION`)、shellcheck 本身(`TOOL_SHELLCHECK_VERSION`,shellcheck action 改成執行時依 `version` 輸入下載,Docker 建置讀不到 Gitea 變數)。 ## Evidence - shellcheck entrypoint 本機實測:下載指定版本並檢查、沒有符合的檔案時不下載、缺版本與版本不存在都有明確錯誤。 - 需要組織變數:`ACTION_CHECKOUT_VERSION=v4`、`ACTION_CACHE_VERSION=v4`、`TOOL_SHELLCHECK_VERSION=v0.10.0`;沒設時 CI 會因為 uses 的版本是空的而失敗。 ## Merge Danger **Door:** two-way **Blast Radius:** action 發版 合併後 cd 會發新標籤(有程式變更的 repo);呼叫端要把 `ACTION_<名稱>_VERSION` 改成新標籤才會採用。 🤖 Generated with [Claude Code](https://claude.com/claude-code)
bot added 1 commit 2026-11-05 04:44:32 +00:00
bot added 1 commit 2026-11-05 04:53:11 +00:00
調整:ci 只在 PR 觸發(拿掉 push: main,和羽藏一致)
cd / tag (pull_request) Successful in 5s
ci / test (pull_request) Successful in 5s
f0109c9983
admin merged commit d6b9282727 into main 2026-11-05 04:56:02 +00:00
admin deleted branch chore/third-party-versions 2026-11-05 04:56:02 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: actions/ci-cache#2