diff --git a/action.yml b/action.yml index bf204e8..8f9af70 100644 --- a/action.yml +++ b/action.yml @@ -1,5 +1,5 @@ name: "MinIO Cache" -description: "Save and restore caches via MinIO/S3." +description: "Save and restore caches" author: "0xMax42" branding: icon: "archive" @@ -12,15 +12,16 @@ inputs: paths: description: "List of paths to cache" required: true - compression_level: + compression-level: description: "Compression level for the cache. ZStd, eg. 0-6" required: false - default: "3" + default: "0" + +outputs: + cache-hit: + description: "Boolean indicating if an exact match was found for the cache key" runs: - using: "composite" - steps: - - name: "Run Action" - shell: "bash" - run: | - ./dist/run-amd64 + using: "node20" + main: "dist/index.js" + post: "dist/index.js" diff --git a/dist/index.js b/dist/index.js index 3b97bd9..f6fc8a0 100644 --- a/dist/index.js +++ b/dist/index.js @@ -26289,7 +26289,8 @@ async function downloadCache(options, owner, repo, key, destinationPath) { const res = await fetch(url, { method: "GET", headers: { - "Authorization": `Bearer ${options.token}` + "Authorization": `Bearer ${options.token}`, + "Accept-Encoding": "identity" } }); if (res.status === 404) {