Deploy version 1.2.0
This commit is contained in:
19
action.yml
19
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"
|
||||
|
3
dist/index.js
vendored
3
dist/index.js
vendored
@@ -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) {
|
||||
|
Reference in New Issue
Block a user