This commit is contained in:
+2
-2
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user