Deploy version 1.2.0
This commit is contained in:
19
action.yml
19
action.yml
@@ -1,5 +1,5 @@
|
|||||||
name: "MinIO Cache"
|
name: "MinIO Cache"
|
||||||
description: "Save and restore caches via MinIO/S3."
|
description: "Save and restore caches"
|
||||||
author: "0xMax42"
|
author: "0xMax42"
|
||||||
branding:
|
branding:
|
||||||
icon: "archive"
|
icon: "archive"
|
||||||
@@ -12,15 +12,16 @@ inputs:
|
|||||||
paths:
|
paths:
|
||||||
description: "List of paths to cache"
|
description: "List of paths to cache"
|
||||||
required: true
|
required: true
|
||||||
compression_level:
|
compression-level:
|
||||||
description: "Compression level for the cache. ZStd, eg. 0-6"
|
description: "Compression level for the cache. ZStd, eg. 0-6"
|
||||||
required: false
|
required: false
|
||||||
default: "3"
|
default: "0"
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
cache-hit:
|
||||||
|
description: "Boolean indicating if an exact match was found for the cache key"
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "node20"
|
||||||
steps:
|
main: "dist/index.js"
|
||||||
- name: "Run Action"
|
post: "dist/index.js"
|
||||||
shell: "bash"
|
|
||||||
run: |
|
|
||||||
./dist/run-amd64
|
|
||||||
|
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, {
|
const res = await fetch(url, {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
headers: {
|
headers: {
|
||||||
"Authorization": `Bearer ${options.token}`
|
"Authorization": `Bearer ${options.token}`,
|
||||||
|
"Accept-Encoding": "identity"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (res.status === 404) {
|
if (res.status === 404) {
|
||||||
|
Reference in New Issue
Block a user