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

This commit is contained in:
bot
2026-11-05 04:44:29 +00:00
parent 05008353ac
commit bee68baf02
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
name: ci-run
description: "跑一個 CI 工作:checkout → 還原快取(ci-cache,key 由 cache_files 的內容雜湊決定)→ 在 ci-env 容器裡執行指令。內部用的 ci-cache、ci-env 版本取自呼叫端的 Gitea 變數 ACTION_CI_CACHE_VERSION、ACTION_CI_ENV_VERSION。需要工具鏈時呼叫的工作流要有 env: GO_VERSION、NODE_VERSION"
description: "跑一個 CI 工作:checkout → 還原快取(ci-cache,key 由 cache_files 的內容雜湊決定)→ 在 ci-env 容器裡執行指令。內部用的版本取自呼叫端的 Gitea 變數:ACTION_CHECKOUT_VERSION、ACTION_CI_CACHE_VERSION、ACTION_CI_ENV_VERSION。需要工具鏈時呼叫的工作流要有 env: GO_VERSION、NODE_VERSION"
inputs:
command:
description: "要在 ci-env 容器裡執行的 shell 指令"
@@ -24,7 +24,7 @@ runs:
steps:
- name: checkout
if: ${{ inputs.checkout == 'true' }}
uses: actions/checkout@v4
uses: actions/checkout@${{ vars.ACTION_CHECKOUT_VERSION }}
- name: 算快取 key
id: key
shell: bash