From ea4cb3731c4eec5900da3d09df7399189fbd129f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20A=2E=20Bellone?= Date: Tue, 28 Mar 2023 17:48:49 -0300 Subject: [PATCH 1/2] Changed head-object to list-objects-v2 for folder compatibility --- backends/cache_s3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/cache_s3 b/backends/cache_s3 index 1eb6518..d15c361 100755 --- a/backends/cache_s3 +++ b/backends/cache_s3 @@ -27,7 +27,7 @@ save_cache() { exists_cache() { if [ -z "$1" ]; then exit 1; fi - aws s3api head-object --bucket "${BUILDKITE_PLUGIN_S3_CACHE_BUCKET}" --key "$(build_key "$1")" + aws s3api list-objects-v2 --bucket "${BUILDKITE_PLUGIN_S3_CACHE_BUCKET}" --prefix "$(build_key "$1")" --max-items 1 } OPCODE="$1" From b21f7ab1fe00ae9949dd35458bac6d96482f9df2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20A=2E=20Bellone?= Date: Tue, 28 Mar 2023 17:51:17 -0300 Subject: [PATCH 2/2] Updated version in readme for next release --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4a400cd..7b9099e 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ steps: - label: ':nodejs: Install dependencies' command: npm ci plugins: - - cache#v0.3.1: + - cache#v0.3.2: manifest: package-lock.json path: node_modules restore: file @@ -114,7 +114,7 @@ steps: - label: ':nodejs: Install dependencies' command: npm ci plugins: - - cache#v0.3.1: + - cache#v0.3.2: manifest: package-lock.json path: node_modules restore: pipeline @@ -123,7 +123,7 @@ steps: - label: ':test_tube: Run tests' command: npm test # does not save cache, not necessary plugins: - - cache#v0.3.1: + - cache#v0.3.2: manifest: package-lock.json path: node_modules restore: file @@ -132,7 +132,7 @@ steps: if: build.branch == "master" command: npm run deploy plugins: - - cache#v0.3.1: + - cache#v0.3.2: manifest: package-lock.json path: node_modules restore: file