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 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"