Unverified Commit 0781355a authored by David Hadka's avatar David Hadka Committed by GitHub
Browse files

Upgrade @actions/cache to 1.0.4 (#451)

parent 22c64ac7
Loading
Loading
Loading
Loading

File changed.

Preview suppressed by a .gitattributes entry or the file's encoding is unsupported.

+4 −1
Changes for dist/restore/index.js: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -3267,9 +3267,12 @@ function uploadChunk(httpClient, resourceUrl, openStream, start, end) {
            'Content-Type': 'application/octet-stream',
            'Content-Range': getContentRange(start, end)
        };
        yield requestUtils_1.retryHttpClientResponse(`uploadChunk (start: ${start}, end: ${end})`, () => __awaiter(this, void 0, void 0, function* () {
        const uploadChunkResponse = yield requestUtils_1.retryHttpClientResponse(`uploadChunk (start: ${start}, end: ${end})`, () => __awaiter(this, void 0, void 0, function* () {
            return httpClient.sendStream('PATCH', resourceUrl, openStream(), additionalHeaders);
        }));
        if (!requestUtils_1.isSuccessStatusCode(uploadChunkResponse.message.statusCode)) {
            throw new Error(`Cache service responded with ${uploadChunkResponse.message.statusCode} during upload chunk.`);
        }
    });
}
function uploadFile(httpClient, cacheId, archivePath, options) {
+4 −1
Changes for dist/save/index.js: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -3267,9 +3267,12 @@ function uploadChunk(httpClient, resourceUrl, openStream, start, end) {
            'Content-Type': 'application/octet-stream',
            'Content-Range': getContentRange(start, end)
        };
        yield requestUtils_1.retryHttpClientResponse(`uploadChunk (start: ${start}, end: ${end})`, () => __awaiter(this, void 0, void 0, function* () {
        const uploadChunkResponse = yield requestUtils_1.retryHttpClientResponse(`uploadChunk (start: ${start}, end: ${end})`, () => __awaiter(this, void 0, void 0, function* () {
            return httpClient.sendStream('PATCH', resourceUrl, openStream(), additionalHeaders);
        }));
        if (!requestUtils_1.isSuccessStatusCode(uploadChunkResponse.message.statusCode)) {
            throw new Error(`Cache service responded with ${uploadChunkResponse.message.statusCode} during upload chunk.`);
        }
    });
}
function uploadFile(httpClient, cacheId, archivePath, options) {
+4 −4
Changes for package-lock.json: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -5,11 +5,11 @@
  "requires": true,
  "dependencies": {
    "@actions/cache": {
      "version": "1.0.3",
      "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-1.0.3.tgz",
      "integrity": "sha512-2DcdMrqbfj5LcsEYIh6ACgjb0bNMeMPP7y1a+bf/Sk0MFfkkrYRNFihkXRV6v0TNkNo0b5X38xmUguRZ5ZPLbw==",
      "version": "1.0.4",
      "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-1.0.4.tgz",
      "integrity": "sha512-1grYfbu8P6JDDHc40eOI5tQDRcAxMwq5HBWhaCqEg9o/ixDRZfwPHlQvQAop2ZzFCjF2ns0ENQOIBAH8GNn+zA==",
      "requires": {
        "@actions/core": "^1.2.4",
        "@actions/core": "^1.2.6",
        "@actions/exec": "^1.0.1",
        "@actions/glob": "^0.1.0",
        "@actions/http-client": "^1.0.9",
+1 −1
Changes for package.json: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@
  "author": "GitHub",
  "license": "MIT",
  "dependencies": {
    "@actions/cache": "^1.0.3",
    "@actions/cache": "^1.0.4",
    "@actions/core": "^1.2.6",
    "@actions/exec": "^1.0.1",
    "@actions/io": "^1.0.1"