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

This commit is contained in:
bot
2026-11-05 04:44:31 +00:00
parent 75299f4c1b
commit 69d8509b3c
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
name: ci-cache
description: "還原與儲存 CI 的快取目錄(預設 workspace 的 .ci-home:Go 模組與建置快取、npm、工具鏈、rod 下載的 Chromium)。包一層 actions/cache,要在 checkout 之後使用;key 由呼叫端用 hashFiles 算好傳入"
description: "還原與儲存 CI 的快取目錄(預設 workspace 的 .ci-home:Go 模組與建置快取、npm、工具鏈、rod 下載的 Chromium)。包一層 actions/cache(版本取自呼叫端的 Gitea 變數 ACTION_CACHE_VERSION),要在 checkout 之後使用;key 由呼叫端用 hashFiles 算好傳入"
inputs:
key:
description: "快取 key,例如 ci-home-${{ hashFiles('go.sum', 'web/package-lock.json') }}"
@@ -13,7 +13,7 @@ inputs:
runs:
using: composite
steps:
- uses: actions/cache@v4
- uses: actions/cache@${{ vars.ACTION_CACHE_VERSION }}
with:
path: ${{ inputs.path }}
key: ${{ inputs.key }}