Compare commits
	
		
			24 Commits
		
	
	
		
			8546a7057e
			...
			testGheswi
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					7852e58f8c | ||
| 
						 | 
					7d4f40b464 | ||
| 
						 | 
					c31528629d | ||
| 
						 | 
					0137340fba | ||
| 
						 | 
					90e5189d64 | ||
| 
						 | 
					5c8d224b05 | ||
| 
						 | 
					d21804b55f | ||
| 
						 | 
					587260d98f | ||
| 
						 | 
					f4b8916a4f | ||
| 
						 | 
					6bf3948635 | ||
| 
						 | 
					31da19523d | ||
| 
						 | 
					e093ab00fc | ||
| 
						 | 
					c5862e209e | ||
| 
						 | 
					9fae644795 | ||
| 
						 | 
					7e4d931f67 | ||
| 
						 | 
					bc53ec57f3 | ||
| 
						 | 
					234b8019b9 | ||
| 
						 | 
					770facace5 | ||
| 
						 | 
					0be029b716 | ||
| 
						 | 
					85665c5247 | ||
| 
						 | 
					c29e204c9f | ||
| 
						 | 
					998cb51251 | ||
| 
						 | 
					824f444748 | ||
| 
						 | 
					1a306b5b35 | 
							
								
								
									
										2
									
								
								.licenses/npm/@actions/cache.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								.licenses/npm/@actions/cache.dep.yml
									
									
									
										generated
									
									
									
								
							@@ -1,6 +1,6 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
name: "@actions/cache"
 | 
					name: "@actions/cache"
 | 
				
			||||||
version: 1.0.10
 | 
					version: 2.0.0
 | 
				
			||||||
type: npm
 | 
					type: npm
 | 
				
			||||||
summary: 
 | 
					summary: 
 | 
				
			||||||
homepage: 
 | 
					homepage: 
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										14
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								README.md
									
									
									
									
									
								
							@@ -10,6 +10,8 @@ See ["Caching dependencies to speed up workflows"](https://help.github.com/githu
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## What's New
 | 
					## What's New
 | 
				
			||||||
### v3
 | 
					### v3
 | 
				
			||||||
 | 
					* Added support for caching from GHES 3.5.
 | 
				
			||||||
 | 
					* Fixed download issue for files > 2GB during restore.
 | 
				
			||||||
* Updated the minimum runner version support from node 12 -> node 16.
 | 
					* Updated the minimum runner version support from node 12 -> node 16.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### v2
 | 
					### v2
 | 
				
			||||||
@@ -175,18 +177,6 @@ steps:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
> Note: The `id` defined in `actions/cache` must match the `id` in the `if` statement (i.e. `steps.[ID].outputs.cache-hit`)
 | 
					> Note: The `id` defined in `actions/cache` must match the `id` in the `if` statement (i.e. `steps.[ID].outputs.cache-hit`)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Known limitation
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- `action/cache` is currently not supported on GitHub Enterprise Server. <https://github.com/github/roadmap/issues/273> is tracking this.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Since GitHub Enterprise Server uses self-hosted runners, dependencies are typically cached on the runner by whatever dependency management tool is being used (npm, maven, etc.).  This eliminates the need for explicit caching in some scenarios.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Changelog schedule and history 
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
| Status  | Version  | Date  | Highlights  |
 | 
					 | 
				
			||||||
|:---|:---|:---|:---|
 | 
					 | 
				
			||||||
| Published  | v3.0.0  | Mar 21st, 2022 | -  Updated minimum runner version support from node 12 -> node 16 <br>  |
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Contributing
 | 
					## Contributing
 | 
				
			||||||
We would love for you to contribute to `actions/cache`, pull requests are welcome! Please see the [CONTRIBUTING.md](CONTRIBUTING.md) for more information.
 | 
					We would love for you to contribute to `actions/cache`, pull requests are welcome! Please see the [CONTRIBUTING.md](CONTRIBUTING.md) for more information.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										8
									
								
								RELEASES.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								RELEASES.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					# Releases
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### 3.0.0
 | 
				
			||||||
 | 
					- Updated minimum runner version support from node 12 -> node 16
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### 3.0.1
 | 
				
			||||||
 | 
					- Added support for caching from GHES 3.5.
 | 
				
			||||||
 | 
					- Fixed download issue for files > 2GB during restore.
 | 
				
			||||||
@@ -1,3 +1,4 @@
 | 
				
			|||||||
 | 
					import * as cache from "@actions/cache";
 | 
				
			||||||
import * as core from "@actions/core";
 | 
					import * as core from "@actions/core";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import { Events, Outputs, RefKey, State } from "../src/constants";
 | 
					import { Events, Outputs, RefKey, State } from "../src/constants";
 | 
				
			||||||
@@ -5,6 +6,7 @@ import * as actionUtils from "../src/utils/actionUtils";
 | 
				
			|||||||
import * as testUtils from "../src/utils/testUtils";
 | 
					import * as testUtils from "../src/utils/testUtils";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jest.mock("@actions/core");
 | 
					jest.mock("@actions/core");
 | 
				
			||||||
 | 
					jest.mock("@actions/cache");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
beforeAll(() => {
 | 
					beforeAll(() => {
 | 
				
			||||||
    jest.spyOn(core, "getInput").mockImplementation((name, options) => {
 | 
					    jest.spyOn(core, "getInput").mockImplementation((name, options) => {
 | 
				
			||||||
@@ -20,7 +22,7 @@ afterEach(() => {
 | 
				
			|||||||
test("isGhes returns true if server url is not github.com", () => {
 | 
					test("isGhes returns true if server url is not github.com", () => {
 | 
				
			||||||
    try {
 | 
					    try {
 | 
				
			||||||
        process.env["GITHUB_SERVER_URL"] = "http://example.com";
 | 
					        process.env["GITHUB_SERVER_URL"] = "http://example.com";
 | 
				
			||||||
        expect(actionUtils.isGhes()).toBe(false);
 | 
					        expect(actionUtils.isGhes()).toBe(true);
 | 
				
			||||||
    } finally {
 | 
					    } finally {
 | 
				
			||||||
        process.env["GITHUB_SERVER_URL"] = undefined;
 | 
					        process.env["GITHUB_SERVER_URL"] = undefined;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@@ -232,3 +234,41 @@ test("getInputAsInt throws if required and value missing", () => {
 | 
				
			|||||||
        actionUtils.getInputAsInt("undefined", { required: true })
 | 
					        actionUtils.getInputAsInt("undefined", { required: true })
 | 
				
			||||||
    ).toThrowError();
 | 
					    ).toThrowError();
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					test("isCacheFeatureAvailable for ac enabled", () => {
 | 
				
			||||||
 | 
					    jest.spyOn(cache, "isFeatureAvailable").mockImplementation(() => true);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    expect(actionUtils.isCacheFeatureAvailable()).toBe(true);
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					test("isCacheFeatureAvailable for ac disabled on GHES", () => {
 | 
				
			||||||
 | 
					    jest.spyOn(cache, "isFeatureAvailable").mockImplementation(() => false);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    const message =
 | 
				
			||||||
 | 
					        "Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if Actions cache service is enabled or not.";
 | 
				
			||||||
 | 
					    const infoMock = jest.spyOn(core, "info");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    try {
 | 
				
			||||||
 | 
					        process.env["GITHUB_SERVER_URL"] = "http://example.com";
 | 
				
			||||||
 | 
					        expect(actionUtils.isCacheFeatureAvailable()).toBe(false);
 | 
				
			||||||
 | 
					        expect(infoMock).toHaveBeenCalledWith(`[warning]${message}`);
 | 
				
			||||||
 | 
					    } finally {
 | 
				
			||||||
 | 
					        delete process.env["GITHUB_SERVER_URL"];
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					test("isCacheFeatureAvailable for ac disabled on dotcom", () => {
 | 
				
			||||||
 | 
					    jest.spyOn(cache, "isFeatureAvailable").mockImplementation(() => false);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    const message =
 | 
				
			||||||
 | 
					        "An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions.";
 | 
				
			||||||
 | 
					    const infoMock = jest.spyOn(core, "info");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    try {
 | 
				
			||||||
 | 
					        process.env["GITHUB_SERVER_URL"] = "http://github.com";
 | 
				
			||||||
 | 
					        expect(actionUtils.isCacheFeatureAvailable()).toBe(false);
 | 
				
			||||||
 | 
					        expect(infoMock).toHaveBeenCalledWith(`[warning]${message}`);
 | 
				
			||||||
 | 
					    } finally {
 | 
				
			||||||
 | 
					        delete process.env["GITHUB_SERVER_URL"];
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -34,6 +34,9 @@ beforeEach(() => {
 | 
				
			|||||||
    process.env[RefKey] = "refs/heads/feature-branch";
 | 
					    process.env[RefKey] = "refs/heads/feature-branch";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    jest.spyOn(actionUtils, "isGhes").mockImplementation(() => false);
 | 
					    jest.spyOn(actionUtils, "isGhes").mockImplementation(() => false);
 | 
				
			||||||
 | 
					    jest.spyOn(actionUtils, "isCacheFeatureAvailable").mockImplementation(
 | 
				
			||||||
 | 
					        () => true
 | 
				
			||||||
 | 
					    );
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
afterEach(() => {
 | 
					afterEach(() => {
 | 
				
			||||||
@@ -55,10 +58,12 @@ test("restore with invalid event outputs warning", async () => {
 | 
				
			|||||||
    expect(failedMock).toHaveBeenCalledTimes(0);
 | 
					    expect(failedMock).toHaveBeenCalledTimes(0);
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
test("restore on GHES should no-op", async () => {
 | 
					test("restore without AC available should no-op", async () => {
 | 
				
			||||||
    jest.spyOn(actionUtils, "isGhes").mockImplementation(() => true);
 | 
					    jest.spyOn(actionUtils, "isGhes").mockImplementation(() => false);
 | 
				
			||||||
 | 
					    jest.spyOn(actionUtils, "isCacheFeatureAvailable").mockImplementation(
 | 
				
			||||||
 | 
					        () => false
 | 
				
			||||||
 | 
					    );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const logWarningMock = jest.spyOn(actionUtils, "logWarning");
 | 
					 | 
				
			||||||
    const restoreCacheMock = jest.spyOn(cache, "restoreCache");
 | 
					    const restoreCacheMock = jest.spyOn(cache, "restoreCache");
 | 
				
			||||||
    const setCacheHitOutputMock = jest.spyOn(actionUtils, "setCacheHitOutput");
 | 
					    const setCacheHitOutputMock = jest.spyOn(actionUtils, "setCacheHitOutput");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -67,9 +72,54 @@ test("restore on GHES should no-op", async () => {
 | 
				
			|||||||
    expect(restoreCacheMock).toHaveBeenCalledTimes(0);
 | 
					    expect(restoreCacheMock).toHaveBeenCalledTimes(0);
 | 
				
			||||||
    expect(setCacheHitOutputMock).toHaveBeenCalledTimes(1);
 | 
					    expect(setCacheHitOutputMock).toHaveBeenCalledTimes(1);
 | 
				
			||||||
    expect(setCacheHitOutputMock).toHaveBeenCalledWith(false);
 | 
					    expect(setCacheHitOutputMock).toHaveBeenCalledWith(false);
 | 
				
			||||||
    expect(logWarningMock).toHaveBeenCalledWith(
 | 
					});
 | 
				
			||||||
        "Cache action is not supported on GHES. See https://github.com/actions/cache/issues/505 for more details"
 | 
					
 | 
				
			||||||
 | 
					test("restore on GHES without AC available should no-op", async () => {
 | 
				
			||||||
 | 
					    jest.spyOn(actionUtils, "isGhes").mockImplementation(() => true);
 | 
				
			||||||
 | 
					    jest.spyOn(actionUtils, "isCacheFeatureAvailable").mockImplementation(
 | 
				
			||||||
 | 
					        () => false
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    const restoreCacheMock = jest.spyOn(cache, "restoreCache");
 | 
				
			||||||
 | 
					    const setCacheHitOutputMock = jest.spyOn(actionUtils, "setCacheHitOutput");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    await run();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    expect(restoreCacheMock).toHaveBeenCalledTimes(0);
 | 
				
			||||||
 | 
					    expect(setCacheHitOutputMock).toHaveBeenCalledTimes(1);
 | 
				
			||||||
 | 
					    expect(setCacheHitOutputMock).toHaveBeenCalledWith(false);
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					test("restore on GHES with AC available ", async () => {
 | 
				
			||||||
 | 
					    jest.spyOn(actionUtils, "isGhes").mockImplementation(() => true);
 | 
				
			||||||
 | 
					    const path = "node_modules";
 | 
				
			||||||
 | 
					    const key = "node-test";
 | 
				
			||||||
 | 
					    testUtils.setInputs({
 | 
				
			||||||
 | 
					        path: path,
 | 
				
			||||||
 | 
					        key
 | 
				
			||||||
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    const infoMock = jest.spyOn(core, "info");
 | 
				
			||||||
 | 
					    const failedMock = jest.spyOn(core, "setFailed");
 | 
				
			||||||
 | 
					    const stateMock = jest.spyOn(core, "saveState");
 | 
				
			||||||
 | 
					    const setCacheHitOutputMock = jest.spyOn(actionUtils, "setCacheHitOutput");
 | 
				
			||||||
 | 
					    const restoreCacheMock = jest
 | 
				
			||||||
 | 
					        .spyOn(cache, "restoreCache")
 | 
				
			||||||
 | 
					        .mockImplementationOnce(() => {
 | 
				
			||||||
 | 
					            return Promise.resolve(key);
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    await run();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    expect(restoreCacheMock).toHaveBeenCalledTimes(1);
 | 
				
			||||||
 | 
					    expect(restoreCacheMock).toHaveBeenCalledWith([path], key, []);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key);
 | 
				
			||||||
 | 
					    expect(setCacheHitOutputMock).toHaveBeenCalledTimes(1);
 | 
				
			||||||
 | 
					    expect(setCacheHitOutputMock).toHaveBeenCalledWith(true);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    expect(infoMock).toHaveBeenCalledWith(`Cache restored from key: ${key}`);
 | 
				
			||||||
 | 
					    expect(failedMock).toHaveBeenCalledTimes(0);
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
test("restore with no path should fail", async () => {
 | 
					test("restore with no path should fail", async () => {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -54,6 +54,9 @@ beforeEach(() => {
 | 
				
			|||||||
    process.env[RefKey] = "refs/heads/feature-branch";
 | 
					    process.env[RefKey] = "refs/heads/feature-branch";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    jest.spyOn(actionUtils, "isGhes").mockImplementation(() => false);
 | 
					    jest.spyOn(actionUtils, "isGhes").mockImplementation(() => false);
 | 
				
			||||||
 | 
					    jest.spyOn(actionUtils, "isCacheFeatureAvailable").mockImplementation(
 | 
				
			||||||
 | 
					        () => true
 | 
				
			||||||
 | 
					    );
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
afterEach(() => {
 | 
					afterEach(() => {
 | 
				
			||||||
@@ -101,18 +104,67 @@ test("save with no primary key in state outputs warning", async () => {
 | 
				
			|||||||
    expect(failedMock).toHaveBeenCalledTimes(0);
 | 
					    expect(failedMock).toHaveBeenCalledTimes(0);
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
test("save on GHES should no-op", async () => {
 | 
					test("save without AC available should no-op", async () => {
 | 
				
			||||||
    jest.spyOn(actionUtils, "isGhes").mockImplementation(() => true);
 | 
					    jest.spyOn(actionUtils, "isCacheFeatureAvailable").mockImplementation(
 | 
				
			||||||
 | 
					        () => false
 | 
				
			||||||
 | 
					    );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const logWarningMock = jest.spyOn(actionUtils, "logWarning");
 | 
					 | 
				
			||||||
    const saveCacheMock = jest.spyOn(cache, "saveCache");
 | 
					    const saveCacheMock = jest.spyOn(cache, "saveCache");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    await run();
 | 
					    await run();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    expect(saveCacheMock).toHaveBeenCalledTimes(0);
 | 
					    expect(saveCacheMock).toHaveBeenCalledTimes(0);
 | 
				
			||||||
    expect(logWarningMock).toHaveBeenCalledWith(
 | 
					});
 | 
				
			||||||
        "Cache action is not supported on GHES. See https://github.com/actions/cache/issues/505 for more details"
 | 
					
 | 
				
			||||||
 | 
					test("save on ghes without AC available should no-op", async () => {
 | 
				
			||||||
 | 
					    jest.spyOn(actionUtils, "isGhes").mockImplementation(() => true);
 | 
				
			||||||
 | 
					    jest.spyOn(actionUtils, "isCacheFeatureAvailable").mockImplementation(
 | 
				
			||||||
 | 
					        () => false
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    const saveCacheMock = jest.spyOn(cache, "saveCache");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    await run();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    expect(saveCacheMock).toHaveBeenCalledTimes(0);
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					test("save on GHES with AC available", async () => {
 | 
				
			||||||
 | 
					    jest.spyOn(actionUtils, "isGhes").mockImplementation(() => true);
 | 
				
			||||||
 | 
					    const failedMock = jest.spyOn(core, "setFailed");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    const primaryKey = "Linux-node-bb828da54c148048dd17899ba9fda624811cfb43";
 | 
				
			||||||
 | 
					    const savedCacheKey = "Linux-node-";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    jest.spyOn(core, "getState")
 | 
				
			||||||
 | 
					        // Cache Entry State
 | 
				
			||||||
 | 
					        .mockImplementationOnce(() => {
 | 
				
			||||||
 | 
					            return savedCacheKey;
 | 
				
			||||||
 | 
					        })
 | 
				
			||||||
 | 
					        // Cache Key State
 | 
				
			||||||
 | 
					        .mockImplementationOnce(() => {
 | 
				
			||||||
 | 
					            return primaryKey;
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    const inputPath = "node_modules";
 | 
				
			||||||
 | 
					    testUtils.setInput(Inputs.Path, inputPath);
 | 
				
			||||||
 | 
					    testUtils.setInput(Inputs.UploadChunkSize, "4000000");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    const cacheId = 4;
 | 
				
			||||||
 | 
					    const saveCacheMock = jest
 | 
				
			||||||
 | 
					        .spyOn(cache, "saveCache")
 | 
				
			||||||
 | 
					        .mockImplementationOnce(() => {
 | 
				
			||||||
 | 
					            return Promise.resolve(cacheId);
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    await run();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    expect(saveCacheMock).toHaveBeenCalledTimes(1);
 | 
				
			||||||
 | 
					    expect(saveCacheMock).toHaveBeenCalledWith([inputPath], primaryKey, {
 | 
				
			||||||
 | 
					        uploadChunkSize: 4000000
 | 
				
			||||||
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    expect(failedMock).toHaveBeenCalledTimes(0);
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
test("save with exact match returns early", async () => {
 | 
					test("save with exact match returns early", async () => {
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										336
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										336
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							@@ -1405,7 +1405,36 @@ exports.default = _default;
 | 
				
			|||||||
/* 39 */,
 | 
					/* 39 */,
 | 
				
			||||||
/* 40 */,
 | 
					/* 40 */,
 | 
				
			||||||
/* 41 */,
 | 
					/* 41 */,
 | 
				
			||||||
/* 42 */,
 | 
					/* 42 */
 | 
				
			||||||
 | 
					/***/ (function(__unusedmodule, exports, __webpack_require__) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					"use strict";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
 | 
					 * Copyright The OpenTelemetry Authors
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Licensed under the Apache License, Version 2.0 (the "License");
 | 
				
			||||||
 | 
					 * you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					 * You may obtain a copy of the License at
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 *      https://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					 * distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||||
 | 
					 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					 * See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					 * limitations under the License.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			||||||
 | 
					exports.createTraceState = void 0;
 | 
				
			||||||
 | 
					var tracestate_impl_1 = __webpack_require__(756);
 | 
				
			||||||
 | 
					function createTraceState(rawTraceState) {
 | 
				
			||||||
 | 
					    return new tracestate_impl_1.TraceStateImpl(rawTraceState);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					exports.createTraceState = createTraceState;
 | 
				
			||||||
 | 
					//# sourceMappingURL=utils.js.map
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/***/ }),
 | 
				
			||||||
/* 43 */,
 | 
					/* 43 */,
 | 
				
			||||||
/* 44 */,
 | 
					/* 44 */,
 | 
				
			||||||
/* 45 */,
 | 
					/* 45 */,
 | 
				
			||||||
@@ -3270,19 +3299,18 @@ function downloadCache(archiveLocation, archivePath, options) {
 | 
				
			|||||||
exports.downloadCache = downloadCache;
 | 
					exports.downloadCache = downloadCache;
 | 
				
			||||||
// Reserve Cache
 | 
					// Reserve Cache
 | 
				
			||||||
function reserveCache(key, paths, options) {
 | 
					function reserveCache(key, paths, options) {
 | 
				
			||||||
 | 
					    var _a, _b;
 | 
				
			||||||
    return __awaiter(this, void 0, void 0, function* () {
 | 
					    return __awaiter(this, void 0, void 0, function* () {
 | 
				
			||||||
        const httpClient = createHttpClient();
 | 
					        const httpClient = createHttpClient();
 | 
				
			||||||
        const version = getCacheVersion(paths, options === null || options === void 0 ? void 0 : options.compressionMethod);
 | 
					        const version = getCacheVersion(paths, options === null || options === void 0 ? void 0 : options.compressionMethod);
 | 
				
			||||||
        const reserveCacheRequest = {
 | 
					        const reserveCacheRequest = {
 | 
				
			||||||
            key,
 | 
					            key,
 | 
				
			||||||
            version,
 | 
					            version
 | 
				
			||||||
            cacheSize: options === null || options === void 0 ? void 0 : options.cacheSize
 | 
					 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
        const response = yield requestUtils_1.retryTypedResponse('reserveCache', () => __awaiter(this, void 0, void 0, function* () {
 | 
					        const response = yield requestUtils_1.retryTypedResponse('reserveCache', () => __awaiter(this, void 0, void 0, function* () {
 | 
				
			||||||
            return httpClient.postJson(getCacheApiUrl('caches'), reserveCacheRequest);
 | 
					            return httpClient.postJson(getCacheApiUrl('caches'), reserveCacheRequest);
 | 
				
			||||||
        }));
 | 
					        }));
 | 
				
			||||||
        console.log(response);
 | 
					        return (_b = (_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.cacheId) !== null && _b !== void 0 ? _b : -1;
 | 
				
			||||||
        return response;
 | 
					 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.reserveCache = reserveCache;
 | 
					exports.reserveCache = reserveCache;
 | 
				
			||||||
@@ -4439,7 +4467,7 @@ var NoopTracer_1 = __webpack_require__(151);
 | 
				
			|||||||
var NoopTracerProvider = /** @class */ (function () {
 | 
					var NoopTracerProvider = /** @class */ (function () {
 | 
				
			||||||
    function NoopTracerProvider() {
 | 
					    function NoopTracerProvider() {
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    NoopTracerProvider.prototype.getTracer = function (_name, _version) {
 | 
					    NoopTracerProvider.prototype.getTracer = function (_name, _version, _options) {
 | 
				
			||||||
        return new NoopTracer_1.NoopTracer();
 | 
					        return new NoopTracer_1.NoopTracer();
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    return NoopTracerProvider;
 | 
					    return NoopTracerProvider;
 | 
				
			||||||
@@ -36263,9 +36291,9 @@ var ProxyTracerProvider = /** @class */ (function () {
 | 
				
			|||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Get a {@link ProxyTracer}
 | 
					     * Get a {@link ProxyTracer}
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    ProxyTracerProvider.prototype.getTracer = function (name, version) {
 | 
					    ProxyTracerProvider.prototype.getTracer = function (name, version, options) {
 | 
				
			||||||
        var _a;
 | 
					        var _a;
 | 
				
			||||||
        return ((_a = this.getDelegateTracer(name, version)) !== null && _a !== void 0 ? _a : new ProxyTracer_1.ProxyTracer(this, name, version));
 | 
					        return ((_a = this.getDelegateTracer(name, version, options)) !== null && _a !== void 0 ? _a : new ProxyTracer_1.ProxyTracer(this, name, version, options));
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    ProxyTracerProvider.prototype.getDelegate = function () {
 | 
					    ProxyTracerProvider.prototype.getDelegate = function () {
 | 
				
			||||||
        var _a;
 | 
					        var _a;
 | 
				
			||||||
@@ -36277,9 +36305,9 @@ var ProxyTracerProvider = /** @class */ (function () {
 | 
				
			|||||||
    ProxyTracerProvider.prototype.setDelegate = function (delegate) {
 | 
					    ProxyTracerProvider.prototype.setDelegate = function (delegate) {
 | 
				
			||||||
        this._delegate = delegate;
 | 
					        this._delegate = delegate;
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    ProxyTracerProvider.prototype.getDelegateTracer = function (name, version) {
 | 
					    ProxyTracerProvider.prototype.getDelegateTracer = function (name, version, options) {
 | 
				
			||||||
        var _a;
 | 
					        var _a;
 | 
				
			||||||
        return (_a = this._delegate) === null || _a === void 0 ? void 0 : _a.getTracer(name, version);
 | 
					        return (_a = this._delegate) === null || _a === void 0 ? void 0 : _a.getTracer(name, version, options);
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    return ProxyTracerProvider;
 | 
					    return ProxyTracerProvider;
 | 
				
			||||||
}());
 | 
					}());
 | 
				
			||||||
@@ -36318,10 +36346,11 @@ var NOOP_TRACER = new NoopTracer_1.NoopTracer();
 | 
				
			|||||||
 * Proxy tracer provided by the proxy tracer provider
 | 
					 * Proxy tracer provided by the proxy tracer provider
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
var ProxyTracer = /** @class */ (function () {
 | 
					var ProxyTracer = /** @class */ (function () {
 | 
				
			||||||
    function ProxyTracer(_provider, name, version) {
 | 
					    function ProxyTracer(_provider, name, version, options) {
 | 
				
			||||||
        this._provider = _provider;
 | 
					        this._provider = _provider;
 | 
				
			||||||
        this.name = name;
 | 
					        this.name = name;
 | 
				
			||||||
        this.version = version;
 | 
					        this.version = version;
 | 
				
			||||||
 | 
					        this.options = options;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    ProxyTracer.prototype.startSpan = function (name, options, context) {
 | 
					    ProxyTracer.prototype.startSpan = function (name, options, context) {
 | 
				
			||||||
        return this._getTracer().startSpan(name, options, context);
 | 
					        return this._getTracer().startSpan(name, options, context);
 | 
				
			||||||
@@ -36338,7 +36367,7 @@ var ProxyTracer = /** @class */ (function () {
 | 
				
			|||||||
        if (this._delegate) {
 | 
					        if (this._delegate) {
 | 
				
			||||||
            return this._delegate;
 | 
					            return this._delegate;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        var tracer = this._provider.getDelegateTracer(this.name, this.version);
 | 
					        var tracer = this._provider.getDelegateTracer(this.name, this.version, this.options);
 | 
				
			||||||
        if (!tracer) {
 | 
					        if (!tracer) {
 | 
				
			||||||
            return NOOP_TRACER;
 | 
					            return NOOP_TRACER;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@@ -37338,12 +37367,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
 | 
				
			|||||||
    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
 | 
					    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
					Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			||||||
exports.diag = exports.propagation = exports.trace = exports.context = exports.INVALID_SPAN_CONTEXT = exports.INVALID_TRACEID = exports.INVALID_SPANID = exports.isValidSpanId = exports.isValidTraceId = exports.isSpanContextValid = exports.baggageEntryMetadataFromString = void 0;
 | 
					exports.diag = exports.propagation = exports.trace = exports.context = exports.INVALID_SPAN_CONTEXT = exports.INVALID_TRACEID = exports.INVALID_SPANID = exports.isValidSpanId = exports.isValidTraceId = exports.isSpanContextValid = exports.createTraceState = exports.baggageEntryMetadataFromString = void 0;
 | 
				
			||||||
__exportStar(__webpack_require__(880), exports);
 | 
					__exportStar(__webpack_require__(880), exports);
 | 
				
			||||||
var utils_1 = __webpack_require__(112);
 | 
					var utils_1 = __webpack_require__(112);
 | 
				
			||||||
Object.defineProperty(exports, "baggageEntryMetadataFromString", { enumerable: true, get: function () { return utils_1.baggageEntryMetadataFromString; } });
 | 
					Object.defineProperty(exports, "baggageEntryMetadataFromString", { enumerable: true, get: function () { return utils_1.baggageEntryMetadataFromString; } });
 | 
				
			||||||
__exportStar(__webpack_require__(452), exports);
 | 
					__exportStar(__webpack_require__(452), exports);
 | 
				
			||||||
__exportStar(__webpack_require__(158), exports);
 | 
					__exportStar(__webpack_require__(158), exports);
 | 
				
			||||||
 | 
					__exportStar(__webpack_require__(907), exports);
 | 
				
			||||||
__exportStar(__webpack_require__(893), exports);
 | 
					__exportStar(__webpack_require__(893), exports);
 | 
				
			||||||
__exportStar(__webpack_require__(881), exports);
 | 
					__exportStar(__webpack_require__(881), exports);
 | 
				
			||||||
__exportStar(__webpack_require__(906), exports);
 | 
					__exportStar(__webpack_require__(906), exports);
 | 
				
			||||||
@@ -37359,8 +37389,11 @@ __exportStar(__webpack_require__(220), exports);
 | 
				
			|||||||
__exportStar(__webpack_require__(932), exports);
 | 
					__exportStar(__webpack_require__(932), exports);
 | 
				
			||||||
__exportStar(__webpack_require__(975), exports);
 | 
					__exportStar(__webpack_require__(975), exports);
 | 
				
			||||||
__exportStar(__webpack_require__(207), exports);
 | 
					__exportStar(__webpack_require__(207), exports);
 | 
				
			||||||
 | 
					var utils_2 = __webpack_require__(42);
 | 
				
			||||||
 | 
					Object.defineProperty(exports, "createTraceState", { enumerable: true, get: function () { return utils_2.createTraceState; } });
 | 
				
			||||||
__exportStar(__webpack_require__(694), exports);
 | 
					__exportStar(__webpack_require__(694), exports);
 | 
				
			||||||
__exportStar(__webpack_require__(695), exports);
 | 
					__exportStar(__webpack_require__(695), exports);
 | 
				
			||||||
 | 
					__exportStar(__webpack_require__(743), exports);
 | 
				
			||||||
var spancontext_utils_1 = __webpack_require__(629);
 | 
					var spancontext_utils_1 = __webpack_require__(629);
 | 
				
			||||||
Object.defineProperty(exports, "isSpanContextValid", { enumerable: true, get: function () { return spancontext_utils_1.isSpanContextValid; } });
 | 
					Object.defineProperty(exports, "isSpanContextValid", { enumerable: true, get: function () { return spancontext_utils_1.isSpanContextValid; } });
 | 
				
			||||||
Object.defineProperty(exports, "isValidTraceId", { enumerable: true, get: function () { return spancontext_utils_1.isValidTraceId; } });
 | 
					Object.defineProperty(exports, "isValidTraceId", { enumerable: true, get: function () { return spancontext_utils_1.isValidTraceId; } });
 | 
				
			||||||
@@ -37424,11 +37457,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
 | 
				
			|||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
					Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			||||||
exports.getInputAsInt = exports.getInputAsArray = exports.isValidEvent = exports.logWarning = exports.getCacheState = exports.setOutputAndState = exports.setCacheHitOutput = exports.setCacheState = exports.isExactKeyMatch = exports.isGhes = void 0;
 | 
					exports.isCacheFeatureAvailable = exports.getInputAsInt = exports.getInputAsArray = exports.isValidEvent = exports.logWarning = exports.getCacheState = exports.setOutputAndState = exports.setCacheHitOutput = exports.setCacheState = exports.isExactKeyMatch = exports.isGhes = void 0;
 | 
				
			||||||
 | 
					const cache = __importStar(__webpack_require__(692));
 | 
				
			||||||
const core = __importStar(__webpack_require__(470));
 | 
					const core = __importStar(__webpack_require__(470));
 | 
				
			||||||
const constants_1 = __webpack_require__(196);
 | 
					const constants_1 = __webpack_require__(196);
 | 
				
			||||||
function isGhes() {
 | 
					function isGhes() {
 | 
				
			||||||
    return false;
 | 
					    const ghUrl = new URL(process.env["GITHUB_SERVER_URL"] || "https://github.com");
 | 
				
			||||||
 | 
					    return ghUrl.hostname.toUpperCase() !== "GITHUB.COM";
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.isGhes = isGhes;
 | 
					exports.isGhes = isGhes;
 | 
				
			||||||
function isExactKeyMatch(key, cacheKey) {
 | 
					function isExactKeyMatch(key, cacheKey) {
 | 
				
			||||||
@@ -37488,6 +37523,19 @@ function getInputAsInt(name, options) {
 | 
				
			|||||||
    return value;
 | 
					    return value;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.getInputAsInt = getInputAsInt;
 | 
					exports.getInputAsInt = getInputAsInt;
 | 
				
			||||||
 | 
					function isCacheFeatureAvailable() {
 | 
				
			||||||
 | 
					    if (!cache.isFeatureAvailable()) {
 | 
				
			||||||
 | 
					        if (isGhes()) {
 | 
				
			||||||
 | 
					            logWarning("Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if Actions cache service is enabled or not.");
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        else {
 | 
				
			||||||
 | 
					            logWarning("An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions.");
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return false;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    return true;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					exports.isCacheFeatureAvailable = isCacheFeatureAvailable;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/***/ }),
 | 
					/***/ }),
 | 
				
			||||||
@@ -42081,7 +42129,58 @@ Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			|||||||
/* 587 */,
 | 
					/* 587 */,
 | 
				
			||||||
/* 588 */,
 | 
					/* 588 */,
 | 
				
			||||||
/* 589 */,
 | 
					/* 589 */,
 | 
				
			||||||
/* 590 */,
 | 
					/* 590 */
 | 
				
			||||||
 | 
					/***/ (function(__unusedmodule, exports) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					"use strict";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
 | 
					 * Copyright The OpenTelemetry Authors
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Licensed under the Apache License, Version 2.0 (the "License");
 | 
				
			||||||
 | 
					 * you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					 * You may obtain a copy of the License at
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 *      https://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					 * distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||||
 | 
					 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					 * See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					 * limitations under the License.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			||||||
 | 
					exports.validateValue = exports.validateKey = void 0;
 | 
				
			||||||
 | 
					var VALID_KEY_CHAR_RANGE = '[_0-9a-z-*/]';
 | 
				
			||||||
 | 
					var VALID_KEY = "[a-z]" + VALID_KEY_CHAR_RANGE + "{0,255}";
 | 
				
			||||||
 | 
					var VALID_VENDOR_KEY = "[a-z0-9]" + VALID_KEY_CHAR_RANGE + "{0,240}@[a-z]" + VALID_KEY_CHAR_RANGE + "{0,13}";
 | 
				
			||||||
 | 
					var VALID_KEY_REGEX = new RegExp("^(?:" + VALID_KEY + "|" + VALID_VENDOR_KEY + ")$");
 | 
				
			||||||
 | 
					var VALID_VALUE_BASE_REGEX = /^[ -~]{0,255}[!-~]$/;
 | 
				
			||||||
 | 
					var INVALID_VALUE_COMMA_EQUAL_REGEX = /,|=/;
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * Key is opaque string up to 256 characters printable. It MUST begin with a
 | 
				
			||||||
 | 
					 * lowercase letter, and can only contain lowercase letters a-z, digits 0-9,
 | 
				
			||||||
 | 
					 * underscores _, dashes -, asterisks *, and forward slashes /.
 | 
				
			||||||
 | 
					 * For multi-tenant vendor scenarios, an at sign (@) can be used to prefix the
 | 
				
			||||||
 | 
					 * vendor name. Vendors SHOULD set the tenant ID at the beginning of the key.
 | 
				
			||||||
 | 
					 * see https://www.w3.org/TR/trace-context/#key
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					function validateKey(key) {
 | 
				
			||||||
 | 
					    return VALID_KEY_REGEX.test(key);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					exports.validateKey = validateKey;
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * Value is opaque string up to 256 characters printable ASCII RFC0020
 | 
				
			||||||
 | 
					 * characters (i.e., the range 0x20 to 0x7E) except comma , and =.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					function validateValue(value) {
 | 
				
			||||||
 | 
					    return (VALID_VALUE_BASE_REGEX.test(value) &&
 | 
				
			||||||
 | 
					        !INVALID_VALUE_COMMA_EQUAL_REGEX.test(value));
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					exports.validateValue = validateValue;
 | 
				
			||||||
 | 
					//# sourceMappingURL=tracestate-validators.js.map
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/***/ }),
 | 
				
			||||||
/* 591 */,
 | 
					/* 591 */,
 | 
				
			||||||
/* 592 */,
 | 
					/* 592 */,
 | 
				
			||||||
/* 593 */,
 | 
					/* 593 */,
 | 
				
			||||||
@@ -46431,7 +46530,14 @@ function saveCache(paths, key, options) {
 | 
				
			|||||||
        checkPaths(paths);
 | 
					        checkPaths(paths);
 | 
				
			||||||
        checkKey(key);
 | 
					        checkKey(key);
 | 
				
			||||||
        const compressionMethod = yield utils.getCompressionMethod();
 | 
					        const compressionMethod = yield utils.getCompressionMethod();
 | 
				
			||||||
        let cacheId = null;
 | 
					        core.debug('Reserving Cache');
 | 
				
			||||||
 | 
					        const cacheId = yield cacheHttpClient.reserveCache(key, paths, {
 | 
				
			||||||
 | 
					            compressionMethod
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					        if (cacheId === -1) {
 | 
				
			||||||
 | 
					            throw new ReserveCacheError(`Unable to reserve cache with key ${key}, another job may be creating this cache.`);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        core.debug(`Cache ID: ${cacheId}`);
 | 
				
			||||||
        const cachePaths = yield utils.resolvePaths(paths);
 | 
					        const cachePaths = yield utils.resolvePaths(paths);
 | 
				
			||||||
        core.debug('Cache Paths:');
 | 
					        core.debug('Cache Paths:');
 | 
				
			||||||
        core.debug(`${JSON.stringify(cachePaths)}`);
 | 
					        core.debug(`${JSON.stringify(cachePaths)}`);
 | 
				
			||||||
@@ -46443,29 +46549,12 @@ function saveCache(paths, key, options) {
 | 
				
			|||||||
            if (core.isDebug()) {
 | 
					            if (core.isDebug()) {
 | 
				
			||||||
                yield tar_1.listTar(archivePath, compressionMethod);
 | 
					                yield tar_1.listTar(archivePath, compressionMethod);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					            const fileSizeLimit = 10 * 1024 * 1024 * 1024; // 10GB per repo limit
 | 
				
			||||||
            const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
 | 
					            const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
 | 
				
			||||||
            core.debug(`File Size: ${archiveFileSize}`);
 | 
					            core.debug(`File Size: ${archiveFileSize}`);
 | 
				
			||||||
            const cacheSize = archiveFileSize;
 | 
					            if (archiveFileSize > fileSizeLimit) {
 | 
				
			||||||
            core.debug('Reserving Cache');
 | 
					                throw new Error(`Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the 10GB limit, not saving cache.`);
 | 
				
			||||||
            let reserveCacheResponse = yield cacheHttpClient.reserveCache(key, paths, {
 | 
					            }
 | 
				
			||||||
                compressionMethod,
 | 
					 | 
				
			||||||
                cacheSize
 | 
					 | 
				
			||||||
            });
 | 
					 | 
				
			||||||
            // if(reserveCacheResponse?.statusCode === 400 && reserveCacheResponse?.result?.typeKey === "InvalidReserveCacheRequestException"){
 | 
					 | 
				
			||||||
            //   throw new ReserveCacheError(
 | 
					 | 
				
			||||||
            //     reserveCacheResponse?.result?.message ??
 | 
					 | 
				
			||||||
            //     `Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the data cap limit, not saving cache.`
 | 
					 | 
				
			||||||
            //   )
 | 
					 | 
				
			||||||
            // }
 | 
					 | 
				
			||||||
            // if(reserveCacheResponse?.result?.cacheId){
 | 
					 | 
				
			||||||
            //   cacheId = reserveCacheResponse?.result?.cacheId
 | 
					 | 
				
			||||||
            // }else{
 | 
					 | 
				
			||||||
            //   throw new ReserveCacheError(
 | 
					 | 
				
			||||||
            //     `Unable to reserve cache with key ${key}, another job may be creating this cache.`
 | 
					 | 
				
			||||||
            //   )
 | 
					 | 
				
			||||||
            // }
 | 
					 | 
				
			||||||
            throw new ReserveCacheError(`Unable to reserve cache with key ${key}, another job may be creating this cache.`);
 | 
					 | 
				
			||||||
            core.debug(`Cache ID: ${cacheId}`);
 | 
					 | 
				
			||||||
            core.debug(`Saving Cache (ID: ${cacheId})`);
 | 
					            core.debug(`Saving Cache (ID: ${cacheId})`);
 | 
				
			||||||
            yield cacheHttpClient.saveCache(cacheId, archivePath, options);
 | 
					            yield cacheHttpClient.saveCache(cacheId, archivePath, options);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@@ -47152,7 +47241,30 @@ exports.OidcClient = OidcClient;
 | 
				
			|||||||
//# sourceMappingURL=oidc-utils.js.map
 | 
					//# sourceMappingURL=oidc-utils.js.map
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/***/ }),
 | 
					/***/ }),
 | 
				
			||||||
/* 743 */,
 | 
					/* 743 */
 | 
				
			||||||
 | 
					/***/ (function(__unusedmodule, exports) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					"use strict";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
 | 
					 * Copyright The OpenTelemetry Authors
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Licensed under the Apache License, Version 2.0 (the "License");
 | 
				
			||||||
 | 
					 * you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					 * You may obtain a copy of the License at
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 *      https://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					 * distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||||
 | 
					 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					 * See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					 * limitations under the License.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			||||||
 | 
					//# sourceMappingURL=tracer_options.js.map
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/***/ }),
 | 
				
			||||||
/* 744 */,
 | 
					/* 744 */,
 | 
				
			||||||
/* 745 */,
 | 
					/* 745 */,
 | 
				
			||||||
/* 746 */,
 | 
					/* 746 */,
 | 
				
			||||||
@@ -47249,7 +47361,117 @@ function async(callback)
 | 
				
			|||||||
/* 753 */,
 | 
					/* 753 */,
 | 
				
			||||||
/* 754 */,
 | 
					/* 754 */,
 | 
				
			||||||
/* 755 */,
 | 
					/* 755 */,
 | 
				
			||||||
/* 756 */,
 | 
					/* 756 */
 | 
				
			||||||
 | 
					/***/ (function(__unusedmodule, exports, __webpack_require__) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					"use strict";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
 | 
					 * Copyright The OpenTelemetry Authors
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Licensed under the Apache License, Version 2.0 (the "License");
 | 
				
			||||||
 | 
					 * you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					 * You may obtain a copy of the License at
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 *      https://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					 * distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||||
 | 
					 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					 * See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					 * limitations under the License.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			||||||
 | 
					exports.TraceStateImpl = void 0;
 | 
				
			||||||
 | 
					var tracestate_validators_1 = __webpack_require__(590);
 | 
				
			||||||
 | 
					var MAX_TRACE_STATE_ITEMS = 32;
 | 
				
			||||||
 | 
					var MAX_TRACE_STATE_LEN = 512;
 | 
				
			||||||
 | 
					var LIST_MEMBERS_SEPARATOR = ',';
 | 
				
			||||||
 | 
					var LIST_MEMBER_KEY_VALUE_SPLITTER = '=';
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * TraceState must be a class and not a simple object type because of the spec
 | 
				
			||||||
 | 
					 * requirement (https://www.w3.org/TR/trace-context/#tracestate-field).
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Here is the list of allowed mutations:
 | 
				
			||||||
 | 
					 * - New key-value pair should be added into the beginning of the list
 | 
				
			||||||
 | 
					 * - The value of any key can be updated. Modified keys MUST be moved to the
 | 
				
			||||||
 | 
					 * beginning of the list.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					var TraceStateImpl = /** @class */ (function () {
 | 
				
			||||||
 | 
					    function TraceStateImpl(rawTraceState) {
 | 
				
			||||||
 | 
					        this._internalState = new Map();
 | 
				
			||||||
 | 
					        if (rawTraceState)
 | 
				
			||||||
 | 
					            this._parse(rawTraceState);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    TraceStateImpl.prototype.set = function (key, value) {
 | 
				
			||||||
 | 
					        // TODO: Benchmark the different approaches(map vs list) and
 | 
				
			||||||
 | 
					        // use the faster one.
 | 
				
			||||||
 | 
					        var traceState = this._clone();
 | 
				
			||||||
 | 
					        if (traceState._internalState.has(key)) {
 | 
				
			||||||
 | 
					            traceState._internalState.delete(key);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        traceState._internalState.set(key, value);
 | 
				
			||||||
 | 
					        return traceState;
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					    TraceStateImpl.prototype.unset = function (key) {
 | 
				
			||||||
 | 
					        var traceState = this._clone();
 | 
				
			||||||
 | 
					        traceState._internalState.delete(key);
 | 
				
			||||||
 | 
					        return traceState;
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					    TraceStateImpl.prototype.get = function (key) {
 | 
				
			||||||
 | 
					        return this._internalState.get(key);
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					    TraceStateImpl.prototype.serialize = function () {
 | 
				
			||||||
 | 
					        var _this = this;
 | 
				
			||||||
 | 
					        return this._keys()
 | 
				
			||||||
 | 
					            .reduce(function (agg, key) {
 | 
				
			||||||
 | 
					            agg.push(key + LIST_MEMBER_KEY_VALUE_SPLITTER + _this.get(key));
 | 
				
			||||||
 | 
					            return agg;
 | 
				
			||||||
 | 
					        }, [])
 | 
				
			||||||
 | 
					            .join(LIST_MEMBERS_SEPARATOR);
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					    TraceStateImpl.prototype._parse = function (rawTraceState) {
 | 
				
			||||||
 | 
					        if (rawTraceState.length > MAX_TRACE_STATE_LEN)
 | 
				
			||||||
 | 
					            return;
 | 
				
			||||||
 | 
					        this._internalState = rawTraceState
 | 
				
			||||||
 | 
					            .split(LIST_MEMBERS_SEPARATOR)
 | 
				
			||||||
 | 
					            .reverse() // Store in reverse so new keys (.set(...)) will be placed at the beginning
 | 
				
			||||||
 | 
					            .reduce(function (agg, part) {
 | 
				
			||||||
 | 
					            var listMember = part.trim(); // Optional Whitespace (OWS) handling
 | 
				
			||||||
 | 
					            var i = listMember.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER);
 | 
				
			||||||
 | 
					            if (i !== -1) {
 | 
				
			||||||
 | 
					                var key = listMember.slice(0, i);
 | 
				
			||||||
 | 
					                var value = listMember.slice(i + 1, part.length);
 | 
				
			||||||
 | 
					                if (tracestate_validators_1.validateKey(key) && tracestate_validators_1.validateValue(value)) {
 | 
				
			||||||
 | 
					                    agg.set(key, value);
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                else {
 | 
				
			||||||
 | 
					                    // TODO: Consider to add warning log
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            return agg;
 | 
				
			||||||
 | 
					        }, new Map());
 | 
				
			||||||
 | 
					        // Because of the reverse() requirement, trunc must be done after map is created
 | 
				
			||||||
 | 
					        if (this._internalState.size > MAX_TRACE_STATE_ITEMS) {
 | 
				
			||||||
 | 
					            this._internalState = new Map(Array.from(this._internalState.entries())
 | 
				
			||||||
 | 
					                .reverse() // Use reverse same as original tracestate parse chain
 | 
				
			||||||
 | 
					                .slice(0, MAX_TRACE_STATE_ITEMS));
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					    TraceStateImpl.prototype._keys = function () {
 | 
				
			||||||
 | 
					        return Array.from(this._internalState.keys()).reverse();
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					    TraceStateImpl.prototype._clone = function () {
 | 
				
			||||||
 | 
					        var traceState = new TraceStateImpl();
 | 
				
			||||||
 | 
					        traceState._internalState = new Map(this._internalState);
 | 
				
			||||||
 | 
					        return traceState;
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					    return TraceStateImpl;
 | 
				
			||||||
 | 
					}());
 | 
				
			||||||
 | 
					exports.TraceStateImpl = TraceStateImpl;
 | 
				
			||||||
 | 
					//# sourceMappingURL=tracestate-impl.js.map
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/***/ }),
 | 
				
			||||||
/* 757 */,
 | 
					/* 757 */,
 | 
				
			||||||
/* 758 */,
 | 
					/* 758 */,
 | 
				
			||||||
/* 759 */,
 | 
					/* 759 */,
 | 
				
			||||||
@@ -47899,8 +48121,7 @@ const utils = __importStar(__webpack_require__(443));
 | 
				
			|||||||
function run() {
 | 
					function run() {
 | 
				
			||||||
    return __awaiter(this, void 0, void 0, function* () {
 | 
					    return __awaiter(this, void 0, void 0, function* () {
 | 
				
			||||||
        try {
 | 
					        try {
 | 
				
			||||||
            if (utils.isGhes()) {
 | 
					            if (!utils.isCacheFeatureAvailable()) {
 | 
				
			||||||
                utils.logWarning("Cache action is not supported on GHES. See https://github.com/actions/cache/issues/505 for more details");
 | 
					 | 
				
			||||||
                utils.setCacheHitOutput(false);
 | 
					                utils.setCacheHitOutput(false);
 | 
				
			||||||
                return;
 | 
					                return;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
@@ -49433,7 +49654,7 @@ module.exports = v4;
 | 
				
			|||||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
					Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			||||||
exports.VERSION = void 0;
 | 
					exports.VERSION = void 0;
 | 
				
			||||||
// this is autogenerated file, see scripts/version-update.js
 | 
					// this is autogenerated file, see scripts/version-update.js
 | 
				
			||||||
exports.VERSION = '1.0.4';
 | 
					exports.VERSION = '1.1.0';
 | 
				
			||||||
//# sourceMappingURL=version.js.map
 | 
					//# sourceMappingURL=version.js.map
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/***/ }),
 | 
					/***/ }),
 | 
				
			||||||
@@ -51565,9 +51786,7 @@ function retryTypedResponse(name, method, maxAttempts = constants_1.DefaultRetry
 | 
				
			|||||||
                return {
 | 
					                return {
 | 
				
			||||||
                    statusCode: error.statusCode,
 | 
					                    statusCode: error.statusCode,
 | 
				
			||||||
                    result: null,
 | 
					                    result: null,
 | 
				
			||||||
                    headers: {},
 | 
					                    headers: {}
 | 
				
			||||||
                    message: error.message,
 | 
					 | 
				
			||||||
                    typeKey: error.result
 | 
					 | 
				
			||||||
                };
 | 
					                };
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            else {
 | 
					            else {
 | 
				
			||||||
@@ -51658,7 +51877,30 @@ Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			|||||||
//# sourceMappingURL=attributes.js.map
 | 
					//# sourceMappingURL=attributes.js.map
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/***/ }),
 | 
					/***/ }),
 | 
				
			||||||
/* 907 */,
 | 
					/* 907 */
 | 
				
			||||||
 | 
					/***/ (function(__unusedmodule, exports) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					"use strict";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
 | 
					 * Copyright The OpenTelemetry Authors
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Licensed under the Apache License, Version 2.0 (the "License");
 | 
				
			||||||
 | 
					 * you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					 * You may obtain a copy of the License at
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 *      https://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					 * distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||||
 | 
					 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					 * See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					 * limitations under the License.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			||||||
 | 
					//# sourceMappingURL=Attributes.js.map
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/***/ }),
 | 
				
			||||||
/* 908 */,
 | 
					/* 908 */,
 | 
				
			||||||
/* 909 */,
 | 
					/* 909 */,
 | 
				
			||||||
/* 910 */
 | 
					/* 910 */
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										336
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										336
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							@@ -1405,7 +1405,36 @@ exports.default = _default;
 | 
				
			|||||||
/* 39 */,
 | 
					/* 39 */,
 | 
				
			||||||
/* 40 */,
 | 
					/* 40 */,
 | 
				
			||||||
/* 41 */,
 | 
					/* 41 */,
 | 
				
			||||||
/* 42 */,
 | 
					/* 42 */
 | 
				
			||||||
 | 
					/***/ (function(__unusedmodule, exports, __webpack_require__) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					"use strict";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
 | 
					 * Copyright The OpenTelemetry Authors
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Licensed under the Apache License, Version 2.0 (the "License");
 | 
				
			||||||
 | 
					 * you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					 * You may obtain a copy of the License at
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 *      https://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					 * distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||||
 | 
					 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					 * See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					 * limitations under the License.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			||||||
 | 
					exports.createTraceState = void 0;
 | 
				
			||||||
 | 
					var tracestate_impl_1 = __webpack_require__(756);
 | 
				
			||||||
 | 
					function createTraceState(rawTraceState) {
 | 
				
			||||||
 | 
					    return new tracestate_impl_1.TraceStateImpl(rawTraceState);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					exports.createTraceState = createTraceState;
 | 
				
			||||||
 | 
					//# sourceMappingURL=utils.js.map
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/***/ }),
 | 
				
			||||||
/* 43 */,
 | 
					/* 43 */,
 | 
				
			||||||
/* 44 */,
 | 
					/* 44 */,
 | 
				
			||||||
/* 45 */,
 | 
					/* 45 */,
 | 
				
			||||||
@@ -3270,19 +3299,18 @@ function downloadCache(archiveLocation, archivePath, options) {
 | 
				
			|||||||
exports.downloadCache = downloadCache;
 | 
					exports.downloadCache = downloadCache;
 | 
				
			||||||
// Reserve Cache
 | 
					// Reserve Cache
 | 
				
			||||||
function reserveCache(key, paths, options) {
 | 
					function reserveCache(key, paths, options) {
 | 
				
			||||||
 | 
					    var _a, _b;
 | 
				
			||||||
    return __awaiter(this, void 0, void 0, function* () {
 | 
					    return __awaiter(this, void 0, void 0, function* () {
 | 
				
			||||||
        const httpClient = createHttpClient();
 | 
					        const httpClient = createHttpClient();
 | 
				
			||||||
        const version = getCacheVersion(paths, options === null || options === void 0 ? void 0 : options.compressionMethod);
 | 
					        const version = getCacheVersion(paths, options === null || options === void 0 ? void 0 : options.compressionMethod);
 | 
				
			||||||
        const reserveCacheRequest = {
 | 
					        const reserveCacheRequest = {
 | 
				
			||||||
            key,
 | 
					            key,
 | 
				
			||||||
            version,
 | 
					            version
 | 
				
			||||||
            cacheSize: options === null || options === void 0 ? void 0 : options.cacheSize
 | 
					 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
        const response = yield requestUtils_1.retryTypedResponse('reserveCache', () => __awaiter(this, void 0, void 0, function* () {
 | 
					        const response = yield requestUtils_1.retryTypedResponse('reserveCache', () => __awaiter(this, void 0, void 0, function* () {
 | 
				
			||||||
            return httpClient.postJson(getCacheApiUrl('caches'), reserveCacheRequest);
 | 
					            return httpClient.postJson(getCacheApiUrl('caches'), reserveCacheRequest);
 | 
				
			||||||
        }));
 | 
					        }));
 | 
				
			||||||
        console.log(response);
 | 
					        return (_b = (_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.cacheId) !== null && _b !== void 0 ? _b : -1;
 | 
				
			||||||
        return response;
 | 
					 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.reserveCache = reserveCache;
 | 
					exports.reserveCache = reserveCache;
 | 
				
			||||||
@@ -4439,7 +4467,7 @@ var NoopTracer_1 = __webpack_require__(151);
 | 
				
			|||||||
var NoopTracerProvider = /** @class */ (function () {
 | 
					var NoopTracerProvider = /** @class */ (function () {
 | 
				
			||||||
    function NoopTracerProvider() {
 | 
					    function NoopTracerProvider() {
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    NoopTracerProvider.prototype.getTracer = function (_name, _version) {
 | 
					    NoopTracerProvider.prototype.getTracer = function (_name, _version, _options) {
 | 
				
			||||||
        return new NoopTracer_1.NoopTracer();
 | 
					        return new NoopTracer_1.NoopTracer();
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    return NoopTracerProvider;
 | 
					    return NoopTracerProvider;
 | 
				
			||||||
@@ -36263,9 +36291,9 @@ var ProxyTracerProvider = /** @class */ (function () {
 | 
				
			|||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Get a {@link ProxyTracer}
 | 
					     * Get a {@link ProxyTracer}
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    ProxyTracerProvider.prototype.getTracer = function (name, version) {
 | 
					    ProxyTracerProvider.prototype.getTracer = function (name, version, options) {
 | 
				
			||||||
        var _a;
 | 
					        var _a;
 | 
				
			||||||
        return ((_a = this.getDelegateTracer(name, version)) !== null && _a !== void 0 ? _a : new ProxyTracer_1.ProxyTracer(this, name, version));
 | 
					        return ((_a = this.getDelegateTracer(name, version, options)) !== null && _a !== void 0 ? _a : new ProxyTracer_1.ProxyTracer(this, name, version, options));
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    ProxyTracerProvider.prototype.getDelegate = function () {
 | 
					    ProxyTracerProvider.prototype.getDelegate = function () {
 | 
				
			||||||
        var _a;
 | 
					        var _a;
 | 
				
			||||||
@@ -36277,9 +36305,9 @@ var ProxyTracerProvider = /** @class */ (function () {
 | 
				
			|||||||
    ProxyTracerProvider.prototype.setDelegate = function (delegate) {
 | 
					    ProxyTracerProvider.prototype.setDelegate = function (delegate) {
 | 
				
			||||||
        this._delegate = delegate;
 | 
					        this._delegate = delegate;
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    ProxyTracerProvider.prototype.getDelegateTracer = function (name, version) {
 | 
					    ProxyTracerProvider.prototype.getDelegateTracer = function (name, version, options) {
 | 
				
			||||||
        var _a;
 | 
					        var _a;
 | 
				
			||||||
        return (_a = this._delegate) === null || _a === void 0 ? void 0 : _a.getTracer(name, version);
 | 
					        return (_a = this._delegate) === null || _a === void 0 ? void 0 : _a.getTracer(name, version, options);
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    return ProxyTracerProvider;
 | 
					    return ProxyTracerProvider;
 | 
				
			||||||
}());
 | 
					}());
 | 
				
			||||||
@@ -36318,10 +36346,11 @@ var NOOP_TRACER = new NoopTracer_1.NoopTracer();
 | 
				
			|||||||
 * Proxy tracer provided by the proxy tracer provider
 | 
					 * Proxy tracer provided by the proxy tracer provider
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
var ProxyTracer = /** @class */ (function () {
 | 
					var ProxyTracer = /** @class */ (function () {
 | 
				
			||||||
    function ProxyTracer(_provider, name, version) {
 | 
					    function ProxyTracer(_provider, name, version, options) {
 | 
				
			||||||
        this._provider = _provider;
 | 
					        this._provider = _provider;
 | 
				
			||||||
        this.name = name;
 | 
					        this.name = name;
 | 
				
			||||||
        this.version = version;
 | 
					        this.version = version;
 | 
				
			||||||
 | 
					        this.options = options;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    ProxyTracer.prototype.startSpan = function (name, options, context) {
 | 
					    ProxyTracer.prototype.startSpan = function (name, options, context) {
 | 
				
			||||||
        return this._getTracer().startSpan(name, options, context);
 | 
					        return this._getTracer().startSpan(name, options, context);
 | 
				
			||||||
@@ -36338,7 +36367,7 @@ var ProxyTracer = /** @class */ (function () {
 | 
				
			|||||||
        if (this._delegate) {
 | 
					        if (this._delegate) {
 | 
				
			||||||
            return this._delegate;
 | 
					            return this._delegate;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        var tracer = this._provider.getDelegateTracer(this.name, this.version);
 | 
					        var tracer = this._provider.getDelegateTracer(this.name, this.version, this.options);
 | 
				
			||||||
        if (!tracer) {
 | 
					        if (!tracer) {
 | 
				
			||||||
            return NOOP_TRACER;
 | 
					            return NOOP_TRACER;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@@ -37338,12 +37367,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
 | 
				
			|||||||
    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
 | 
					    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
					Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			||||||
exports.diag = exports.propagation = exports.trace = exports.context = exports.INVALID_SPAN_CONTEXT = exports.INVALID_TRACEID = exports.INVALID_SPANID = exports.isValidSpanId = exports.isValidTraceId = exports.isSpanContextValid = exports.baggageEntryMetadataFromString = void 0;
 | 
					exports.diag = exports.propagation = exports.trace = exports.context = exports.INVALID_SPAN_CONTEXT = exports.INVALID_TRACEID = exports.INVALID_SPANID = exports.isValidSpanId = exports.isValidTraceId = exports.isSpanContextValid = exports.createTraceState = exports.baggageEntryMetadataFromString = void 0;
 | 
				
			||||||
__exportStar(__webpack_require__(880), exports);
 | 
					__exportStar(__webpack_require__(880), exports);
 | 
				
			||||||
var utils_1 = __webpack_require__(112);
 | 
					var utils_1 = __webpack_require__(112);
 | 
				
			||||||
Object.defineProperty(exports, "baggageEntryMetadataFromString", { enumerable: true, get: function () { return utils_1.baggageEntryMetadataFromString; } });
 | 
					Object.defineProperty(exports, "baggageEntryMetadataFromString", { enumerable: true, get: function () { return utils_1.baggageEntryMetadataFromString; } });
 | 
				
			||||||
__exportStar(__webpack_require__(452), exports);
 | 
					__exportStar(__webpack_require__(452), exports);
 | 
				
			||||||
__exportStar(__webpack_require__(158), exports);
 | 
					__exportStar(__webpack_require__(158), exports);
 | 
				
			||||||
 | 
					__exportStar(__webpack_require__(907), exports);
 | 
				
			||||||
__exportStar(__webpack_require__(893), exports);
 | 
					__exportStar(__webpack_require__(893), exports);
 | 
				
			||||||
__exportStar(__webpack_require__(881), exports);
 | 
					__exportStar(__webpack_require__(881), exports);
 | 
				
			||||||
__exportStar(__webpack_require__(906), exports);
 | 
					__exportStar(__webpack_require__(906), exports);
 | 
				
			||||||
@@ -37359,8 +37389,11 @@ __exportStar(__webpack_require__(220), exports);
 | 
				
			|||||||
__exportStar(__webpack_require__(932), exports);
 | 
					__exportStar(__webpack_require__(932), exports);
 | 
				
			||||||
__exportStar(__webpack_require__(975), exports);
 | 
					__exportStar(__webpack_require__(975), exports);
 | 
				
			||||||
__exportStar(__webpack_require__(207), exports);
 | 
					__exportStar(__webpack_require__(207), exports);
 | 
				
			||||||
 | 
					var utils_2 = __webpack_require__(42);
 | 
				
			||||||
 | 
					Object.defineProperty(exports, "createTraceState", { enumerable: true, get: function () { return utils_2.createTraceState; } });
 | 
				
			||||||
__exportStar(__webpack_require__(694), exports);
 | 
					__exportStar(__webpack_require__(694), exports);
 | 
				
			||||||
__exportStar(__webpack_require__(695), exports);
 | 
					__exportStar(__webpack_require__(695), exports);
 | 
				
			||||||
 | 
					__exportStar(__webpack_require__(743), exports);
 | 
				
			||||||
var spancontext_utils_1 = __webpack_require__(629);
 | 
					var spancontext_utils_1 = __webpack_require__(629);
 | 
				
			||||||
Object.defineProperty(exports, "isSpanContextValid", { enumerable: true, get: function () { return spancontext_utils_1.isSpanContextValid; } });
 | 
					Object.defineProperty(exports, "isSpanContextValid", { enumerable: true, get: function () { return spancontext_utils_1.isSpanContextValid; } });
 | 
				
			||||||
Object.defineProperty(exports, "isValidTraceId", { enumerable: true, get: function () { return spancontext_utils_1.isValidTraceId; } });
 | 
					Object.defineProperty(exports, "isValidTraceId", { enumerable: true, get: function () { return spancontext_utils_1.isValidTraceId; } });
 | 
				
			||||||
@@ -37424,11 +37457,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
 | 
				
			|||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
					Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			||||||
exports.getInputAsInt = exports.getInputAsArray = exports.isValidEvent = exports.logWarning = exports.getCacheState = exports.setOutputAndState = exports.setCacheHitOutput = exports.setCacheState = exports.isExactKeyMatch = exports.isGhes = void 0;
 | 
					exports.isCacheFeatureAvailable = exports.getInputAsInt = exports.getInputAsArray = exports.isValidEvent = exports.logWarning = exports.getCacheState = exports.setOutputAndState = exports.setCacheHitOutput = exports.setCacheState = exports.isExactKeyMatch = exports.isGhes = void 0;
 | 
				
			||||||
 | 
					const cache = __importStar(__webpack_require__(692));
 | 
				
			||||||
const core = __importStar(__webpack_require__(470));
 | 
					const core = __importStar(__webpack_require__(470));
 | 
				
			||||||
const constants_1 = __webpack_require__(196);
 | 
					const constants_1 = __webpack_require__(196);
 | 
				
			||||||
function isGhes() {
 | 
					function isGhes() {
 | 
				
			||||||
    return false;
 | 
					    const ghUrl = new URL(process.env["GITHUB_SERVER_URL"] || "https://github.com");
 | 
				
			||||||
 | 
					    return ghUrl.hostname.toUpperCase() !== "GITHUB.COM";
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.isGhes = isGhes;
 | 
					exports.isGhes = isGhes;
 | 
				
			||||||
function isExactKeyMatch(key, cacheKey) {
 | 
					function isExactKeyMatch(key, cacheKey) {
 | 
				
			||||||
@@ -37488,6 +37523,19 @@ function getInputAsInt(name, options) {
 | 
				
			|||||||
    return value;
 | 
					    return value;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.getInputAsInt = getInputAsInt;
 | 
					exports.getInputAsInt = getInputAsInt;
 | 
				
			||||||
 | 
					function isCacheFeatureAvailable() {
 | 
				
			||||||
 | 
					    if (!cache.isFeatureAvailable()) {
 | 
				
			||||||
 | 
					        if (isGhes()) {
 | 
				
			||||||
 | 
					            logWarning("Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if Actions cache service is enabled or not.");
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        else {
 | 
				
			||||||
 | 
					            logWarning("An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions.");
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return false;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    return true;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					exports.isCacheFeatureAvailable = isCacheFeatureAvailable;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/***/ }),
 | 
					/***/ }),
 | 
				
			||||||
@@ -42081,7 +42129,58 @@ Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			|||||||
/* 587 */,
 | 
					/* 587 */,
 | 
				
			||||||
/* 588 */,
 | 
					/* 588 */,
 | 
				
			||||||
/* 589 */,
 | 
					/* 589 */,
 | 
				
			||||||
/* 590 */,
 | 
					/* 590 */
 | 
				
			||||||
 | 
					/***/ (function(__unusedmodule, exports) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					"use strict";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
 | 
					 * Copyright The OpenTelemetry Authors
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Licensed under the Apache License, Version 2.0 (the "License");
 | 
				
			||||||
 | 
					 * you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					 * You may obtain a copy of the License at
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 *      https://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					 * distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||||
 | 
					 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					 * See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					 * limitations under the License.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			||||||
 | 
					exports.validateValue = exports.validateKey = void 0;
 | 
				
			||||||
 | 
					var VALID_KEY_CHAR_RANGE = '[_0-9a-z-*/]';
 | 
				
			||||||
 | 
					var VALID_KEY = "[a-z]" + VALID_KEY_CHAR_RANGE + "{0,255}";
 | 
				
			||||||
 | 
					var VALID_VENDOR_KEY = "[a-z0-9]" + VALID_KEY_CHAR_RANGE + "{0,240}@[a-z]" + VALID_KEY_CHAR_RANGE + "{0,13}";
 | 
				
			||||||
 | 
					var VALID_KEY_REGEX = new RegExp("^(?:" + VALID_KEY + "|" + VALID_VENDOR_KEY + ")$");
 | 
				
			||||||
 | 
					var VALID_VALUE_BASE_REGEX = /^[ -~]{0,255}[!-~]$/;
 | 
				
			||||||
 | 
					var INVALID_VALUE_COMMA_EQUAL_REGEX = /,|=/;
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * Key is opaque string up to 256 characters printable. It MUST begin with a
 | 
				
			||||||
 | 
					 * lowercase letter, and can only contain lowercase letters a-z, digits 0-9,
 | 
				
			||||||
 | 
					 * underscores _, dashes -, asterisks *, and forward slashes /.
 | 
				
			||||||
 | 
					 * For multi-tenant vendor scenarios, an at sign (@) can be used to prefix the
 | 
				
			||||||
 | 
					 * vendor name. Vendors SHOULD set the tenant ID at the beginning of the key.
 | 
				
			||||||
 | 
					 * see https://www.w3.org/TR/trace-context/#key
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					function validateKey(key) {
 | 
				
			||||||
 | 
					    return VALID_KEY_REGEX.test(key);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					exports.validateKey = validateKey;
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * Value is opaque string up to 256 characters printable ASCII RFC0020
 | 
				
			||||||
 | 
					 * characters (i.e., the range 0x20 to 0x7E) except comma , and =.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					function validateValue(value) {
 | 
				
			||||||
 | 
					    return (VALID_VALUE_BASE_REGEX.test(value) &&
 | 
				
			||||||
 | 
					        !INVALID_VALUE_COMMA_EQUAL_REGEX.test(value));
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					exports.validateValue = validateValue;
 | 
				
			||||||
 | 
					//# sourceMappingURL=tracestate-validators.js.map
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/***/ }),
 | 
				
			||||||
/* 591 */,
 | 
					/* 591 */,
 | 
				
			||||||
/* 592 */,
 | 
					/* 592 */,
 | 
				
			||||||
/* 593 */,
 | 
					/* 593 */,
 | 
				
			||||||
@@ -46301,8 +46400,7 @@ process.on("uncaughtException", e => utils.logWarning(e.message));
 | 
				
			|||||||
function run() {
 | 
					function run() {
 | 
				
			||||||
    return __awaiter(this, void 0, void 0, function* () {
 | 
					    return __awaiter(this, void 0, void 0, function* () {
 | 
				
			||||||
        try {
 | 
					        try {
 | 
				
			||||||
            if (utils.isGhes()) {
 | 
					            if (!utils.isCacheFeatureAvailable()) {
 | 
				
			||||||
                utils.logWarning("Cache action is not supported on GHES. See https://github.com/actions/cache/issues/505 for more details");
 | 
					 | 
				
			||||||
                return;
 | 
					                return;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            if (!utils.isValidEvent()) {
 | 
					            if (!utils.isValidEvent()) {
 | 
				
			||||||
@@ -46525,7 +46623,14 @@ function saveCache(paths, key, options) {
 | 
				
			|||||||
        checkPaths(paths);
 | 
					        checkPaths(paths);
 | 
				
			||||||
        checkKey(key);
 | 
					        checkKey(key);
 | 
				
			||||||
        const compressionMethod = yield utils.getCompressionMethod();
 | 
					        const compressionMethod = yield utils.getCompressionMethod();
 | 
				
			||||||
        let cacheId = null;
 | 
					        core.debug('Reserving Cache');
 | 
				
			||||||
 | 
					        const cacheId = yield cacheHttpClient.reserveCache(key, paths, {
 | 
				
			||||||
 | 
					            compressionMethod
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					        if (cacheId === -1) {
 | 
				
			||||||
 | 
					            throw new ReserveCacheError(`Unable to reserve cache with key ${key}, another job may be creating this cache.`);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        core.debug(`Cache ID: ${cacheId}`);
 | 
				
			||||||
        const cachePaths = yield utils.resolvePaths(paths);
 | 
					        const cachePaths = yield utils.resolvePaths(paths);
 | 
				
			||||||
        core.debug('Cache Paths:');
 | 
					        core.debug('Cache Paths:');
 | 
				
			||||||
        core.debug(`${JSON.stringify(cachePaths)}`);
 | 
					        core.debug(`${JSON.stringify(cachePaths)}`);
 | 
				
			||||||
@@ -46537,29 +46642,12 @@ function saveCache(paths, key, options) {
 | 
				
			|||||||
            if (core.isDebug()) {
 | 
					            if (core.isDebug()) {
 | 
				
			||||||
                yield tar_1.listTar(archivePath, compressionMethod);
 | 
					                yield tar_1.listTar(archivePath, compressionMethod);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					            const fileSizeLimit = 10 * 1024 * 1024 * 1024; // 10GB per repo limit
 | 
				
			||||||
            const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
 | 
					            const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
 | 
				
			||||||
            core.debug(`File Size: ${archiveFileSize}`);
 | 
					            core.debug(`File Size: ${archiveFileSize}`);
 | 
				
			||||||
            const cacheSize = archiveFileSize;
 | 
					            if (archiveFileSize > fileSizeLimit) {
 | 
				
			||||||
            core.debug('Reserving Cache');
 | 
					                throw new Error(`Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the 10GB limit, not saving cache.`);
 | 
				
			||||||
            let reserveCacheResponse = yield cacheHttpClient.reserveCache(key, paths, {
 | 
					            }
 | 
				
			||||||
                compressionMethod,
 | 
					 | 
				
			||||||
                cacheSize
 | 
					 | 
				
			||||||
            });
 | 
					 | 
				
			||||||
            // if(reserveCacheResponse?.statusCode === 400 && reserveCacheResponse?.result?.typeKey === "InvalidReserveCacheRequestException"){
 | 
					 | 
				
			||||||
            //   throw new ReserveCacheError(
 | 
					 | 
				
			||||||
            //     reserveCacheResponse?.result?.message ??
 | 
					 | 
				
			||||||
            //     `Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the data cap limit, not saving cache.`
 | 
					 | 
				
			||||||
            //   )
 | 
					 | 
				
			||||||
            // }
 | 
					 | 
				
			||||||
            // if(reserveCacheResponse?.result?.cacheId){
 | 
					 | 
				
			||||||
            //   cacheId = reserveCacheResponse?.result?.cacheId
 | 
					 | 
				
			||||||
            // }else{
 | 
					 | 
				
			||||||
            //   throw new ReserveCacheError(
 | 
					 | 
				
			||||||
            //     `Unable to reserve cache with key ${key}, another job may be creating this cache.`
 | 
					 | 
				
			||||||
            //   )
 | 
					 | 
				
			||||||
            // }
 | 
					 | 
				
			||||||
            throw new ReserveCacheError(`Unable to reserve cache with key ${key}, another job may be creating this cache.`);
 | 
					 | 
				
			||||||
            core.debug(`Cache ID: ${cacheId}`);
 | 
					 | 
				
			||||||
            core.debug(`Saving Cache (ID: ${cacheId})`);
 | 
					            core.debug(`Saving Cache (ID: ${cacheId})`);
 | 
				
			||||||
            yield cacheHttpClient.saveCache(cacheId, archivePath, options);
 | 
					            yield cacheHttpClient.saveCache(cacheId, archivePath, options);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@@ -47246,7 +47334,30 @@ exports.OidcClient = OidcClient;
 | 
				
			|||||||
//# sourceMappingURL=oidc-utils.js.map
 | 
					//# sourceMappingURL=oidc-utils.js.map
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/***/ }),
 | 
					/***/ }),
 | 
				
			||||||
/* 743 */,
 | 
					/* 743 */
 | 
				
			||||||
 | 
					/***/ (function(__unusedmodule, exports) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					"use strict";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
 | 
					 * Copyright The OpenTelemetry Authors
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Licensed under the Apache License, Version 2.0 (the "License");
 | 
				
			||||||
 | 
					 * you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					 * You may obtain a copy of the License at
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 *      https://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					 * distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||||
 | 
					 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					 * See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					 * limitations under the License.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			||||||
 | 
					//# sourceMappingURL=tracer_options.js.map
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/***/ }),
 | 
				
			||||||
/* 744 */,
 | 
					/* 744 */,
 | 
				
			||||||
/* 745 */,
 | 
					/* 745 */,
 | 
				
			||||||
/* 746 */,
 | 
					/* 746 */,
 | 
				
			||||||
@@ -47343,7 +47454,117 @@ function async(callback)
 | 
				
			|||||||
/* 753 */,
 | 
					/* 753 */,
 | 
				
			||||||
/* 754 */,
 | 
					/* 754 */,
 | 
				
			||||||
/* 755 */,
 | 
					/* 755 */,
 | 
				
			||||||
/* 756 */,
 | 
					/* 756 */
 | 
				
			||||||
 | 
					/***/ (function(__unusedmodule, exports, __webpack_require__) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					"use strict";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
 | 
					 * Copyright The OpenTelemetry Authors
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Licensed under the Apache License, Version 2.0 (the "License");
 | 
				
			||||||
 | 
					 * you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					 * You may obtain a copy of the License at
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 *      https://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					 * distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||||
 | 
					 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					 * See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					 * limitations under the License.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			||||||
 | 
					exports.TraceStateImpl = void 0;
 | 
				
			||||||
 | 
					var tracestate_validators_1 = __webpack_require__(590);
 | 
				
			||||||
 | 
					var MAX_TRACE_STATE_ITEMS = 32;
 | 
				
			||||||
 | 
					var MAX_TRACE_STATE_LEN = 512;
 | 
				
			||||||
 | 
					var LIST_MEMBERS_SEPARATOR = ',';
 | 
				
			||||||
 | 
					var LIST_MEMBER_KEY_VALUE_SPLITTER = '=';
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * TraceState must be a class and not a simple object type because of the spec
 | 
				
			||||||
 | 
					 * requirement (https://www.w3.org/TR/trace-context/#tracestate-field).
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Here is the list of allowed mutations:
 | 
				
			||||||
 | 
					 * - New key-value pair should be added into the beginning of the list
 | 
				
			||||||
 | 
					 * - The value of any key can be updated. Modified keys MUST be moved to the
 | 
				
			||||||
 | 
					 * beginning of the list.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					var TraceStateImpl = /** @class */ (function () {
 | 
				
			||||||
 | 
					    function TraceStateImpl(rawTraceState) {
 | 
				
			||||||
 | 
					        this._internalState = new Map();
 | 
				
			||||||
 | 
					        if (rawTraceState)
 | 
				
			||||||
 | 
					            this._parse(rawTraceState);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    TraceStateImpl.prototype.set = function (key, value) {
 | 
				
			||||||
 | 
					        // TODO: Benchmark the different approaches(map vs list) and
 | 
				
			||||||
 | 
					        // use the faster one.
 | 
				
			||||||
 | 
					        var traceState = this._clone();
 | 
				
			||||||
 | 
					        if (traceState._internalState.has(key)) {
 | 
				
			||||||
 | 
					            traceState._internalState.delete(key);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        traceState._internalState.set(key, value);
 | 
				
			||||||
 | 
					        return traceState;
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					    TraceStateImpl.prototype.unset = function (key) {
 | 
				
			||||||
 | 
					        var traceState = this._clone();
 | 
				
			||||||
 | 
					        traceState._internalState.delete(key);
 | 
				
			||||||
 | 
					        return traceState;
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					    TraceStateImpl.prototype.get = function (key) {
 | 
				
			||||||
 | 
					        return this._internalState.get(key);
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					    TraceStateImpl.prototype.serialize = function () {
 | 
				
			||||||
 | 
					        var _this = this;
 | 
				
			||||||
 | 
					        return this._keys()
 | 
				
			||||||
 | 
					            .reduce(function (agg, key) {
 | 
				
			||||||
 | 
					            agg.push(key + LIST_MEMBER_KEY_VALUE_SPLITTER + _this.get(key));
 | 
				
			||||||
 | 
					            return agg;
 | 
				
			||||||
 | 
					        }, [])
 | 
				
			||||||
 | 
					            .join(LIST_MEMBERS_SEPARATOR);
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					    TraceStateImpl.prototype._parse = function (rawTraceState) {
 | 
				
			||||||
 | 
					        if (rawTraceState.length > MAX_TRACE_STATE_LEN)
 | 
				
			||||||
 | 
					            return;
 | 
				
			||||||
 | 
					        this._internalState = rawTraceState
 | 
				
			||||||
 | 
					            .split(LIST_MEMBERS_SEPARATOR)
 | 
				
			||||||
 | 
					            .reverse() // Store in reverse so new keys (.set(...)) will be placed at the beginning
 | 
				
			||||||
 | 
					            .reduce(function (agg, part) {
 | 
				
			||||||
 | 
					            var listMember = part.trim(); // Optional Whitespace (OWS) handling
 | 
				
			||||||
 | 
					            var i = listMember.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER);
 | 
				
			||||||
 | 
					            if (i !== -1) {
 | 
				
			||||||
 | 
					                var key = listMember.slice(0, i);
 | 
				
			||||||
 | 
					                var value = listMember.slice(i + 1, part.length);
 | 
				
			||||||
 | 
					                if (tracestate_validators_1.validateKey(key) && tracestate_validators_1.validateValue(value)) {
 | 
				
			||||||
 | 
					                    agg.set(key, value);
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                else {
 | 
				
			||||||
 | 
					                    // TODO: Consider to add warning log
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            return agg;
 | 
				
			||||||
 | 
					        }, new Map());
 | 
				
			||||||
 | 
					        // Because of the reverse() requirement, trunc must be done after map is created
 | 
				
			||||||
 | 
					        if (this._internalState.size > MAX_TRACE_STATE_ITEMS) {
 | 
				
			||||||
 | 
					            this._internalState = new Map(Array.from(this._internalState.entries())
 | 
				
			||||||
 | 
					                .reverse() // Use reverse same as original tracestate parse chain
 | 
				
			||||||
 | 
					                .slice(0, MAX_TRACE_STATE_ITEMS));
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					    TraceStateImpl.prototype._keys = function () {
 | 
				
			||||||
 | 
					        return Array.from(this._internalState.keys()).reverse();
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					    TraceStateImpl.prototype._clone = function () {
 | 
				
			||||||
 | 
					        var traceState = new TraceStateImpl();
 | 
				
			||||||
 | 
					        traceState._internalState = new Map(this._internalState);
 | 
				
			||||||
 | 
					        return traceState;
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					    return TraceStateImpl;
 | 
				
			||||||
 | 
					}());
 | 
				
			||||||
 | 
					exports.TraceStateImpl = TraceStateImpl;
 | 
				
			||||||
 | 
					//# sourceMappingURL=tracestate-impl.js.map
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/***/ }),
 | 
				
			||||||
/* 757 */,
 | 
					/* 757 */,
 | 
				
			||||||
/* 758 */,
 | 
					/* 758 */,
 | 
				
			||||||
/* 759 */,
 | 
					/* 759 */,
 | 
				
			||||||
@@ -49436,7 +49657,7 @@ module.exports = v4;
 | 
				
			|||||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
					Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			||||||
exports.VERSION = void 0;
 | 
					exports.VERSION = void 0;
 | 
				
			||||||
// this is autogenerated file, see scripts/version-update.js
 | 
					// this is autogenerated file, see scripts/version-update.js
 | 
				
			||||||
exports.VERSION = '1.0.4';
 | 
					exports.VERSION = '1.1.0';
 | 
				
			||||||
//# sourceMappingURL=version.js.map
 | 
					//# sourceMappingURL=version.js.map
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/***/ }),
 | 
					/***/ }),
 | 
				
			||||||
@@ -51568,9 +51789,7 @@ function retryTypedResponse(name, method, maxAttempts = constants_1.DefaultRetry
 | 
				
			|||||||
                return {
 | 
					                return {
 | 
				
			||||||
                    statusCode: error.statusCode,
 | 
					                    statusCode: error.statusCode,
 | 
				
			||||||
                    result: null,
 | 
					                    result: null,
 | 
				
			||||||
                    headers: {},
 | 
					                    headers: {}
 | 
				
			||||||
                    message: error.message,
 | 
					 | 
				
			||||||
                    typeKey: error.result
 | 
					 | 
				
			||||||
                };
 | 
					                };
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            else {
 | 
					            else {
 | 
				
			||||||
@@ -51661,7 +51880,30 @@ Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			|||||||
//# sourceMappingURL=attributes.js.map
 | 
					//# sourceMappingURL=attributes.js.map
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/***/ }),
 | 
					/***/ }),
 | 
				
			||||||
/* 907 */,
 | 
					/* 907 */
 | 
				
			||||||
 | 
					/***/ (function(__unusedmodule, exports) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					"use strict";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
 | 
					 * Copyright The OpenTelemetry Authors
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Licensed under the Apache License, Version 2.0 (the "License");
 | 
				
			||||||
 | 
					 * you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					 * You may obtain a copy of the License at
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 *      https://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					 * distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||||
 | 
					 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					 * See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					 * limitations under the License.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					Object.defineProperty(exports, "__esModule", { value: true });
 | 
				
			||||||
 | 
					//# sourceMappingURL=Attributes.js.map
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/***/ }),
 | 
				
			||||||
/* 908 */,
 | 
					/* 908 */,
 | 
				
			||||||
/* 909 */,
 | 
					/* 909 */,
 | 
				
			||||||
/* 910 */
 | 
					/* 910 */
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										7419
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										7419
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										14
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								package.json
									
									
									
									
									
								
							@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "cache",
 | 
					  "name": "cache",
 | 
				
			||||||
  "version": "3.0.0",
 | 
					  "version": "3.0.1",
 | 
				
			||||||
  "private": true,
 | 
					  "private": true,
 | 
				
			||||||
  "description": "Cache dependencies and build outputs",
 | 
					  "description": "Cache dependencies and build outputs",
 | 
				
			||||||
  "main": "dist/restore/index.js",
 | 
					  "main": "dist/restore/index.js",
 | 
				
			||||||
@@ -23,7 +23,7 @@
 | 
				
			|||||||
  "author": "GitHub",
 | 
					  "author": "GitHub",
 | 
				
			||||||
  "license": "MIT",
 | 
					  "license": "MIT",
 | 
				
			||||||
  "dependencies": {
 | 
					  "dependencies": {
 | 
				
			||||||
    "@actions/cache": "file:actions-cache-2.6.0.tgz",
 | 
					    "@actions/cache": "^2.0.0",
 | 
				
			||||||
    "@actions/core": "^1.2.6",
 | 
					    "@actions/core": "^1.2.6",
 | 
				
			||||||
    "@actions/exec": "^1.1.1",
 | 
					    "@actions/exec": "^1.1.1",
 | 
				
			||||||
    "@actions/io": "^1.1.2"
 | 
					    "@actions/io": "^1.1.2"
 | 
				
			||||||
@@ -32,20 +32,20 @@
 | 
				
			|||||||
    "@types/jest": "^27.4.1",
 | 
					    "@types/jest": "^27.4.1",
 | 
				
			||||||
    "@types/nock": "^11.1.0",
 | 
					    "@types/nock": "^11.1.0",
 | 
				
			||||||
    "@types/node": "^16.11.26",
 | 
					    "@types/node": "^16.11.26",
 | 
				
			||||||
    "@typescript-eslint/eslint-plugin": "^5.15.0",
 | 
					    "@typescript-eslint/eslint-plugin": "^5.16.0",
 | 
				
			||||||
    "@typescript-eslint/parser": "^5.15.0",
 | 
					    "@typescript-eslint/parser": "^5.16.0",
 | 
				
			||||||
    "@zeit/ncc": "^0.20.5",
 | 
					    "@zeit/ncc": "^0.20.5",
 | 
				
			||||||
    "eslint": "^8.11.0",
 | 
					    "eslint": "^8.11.0",
 | 
				
			||||||
    "eslint-config-prettier": "^8.5.0",
 | 
					    "eslint-config-prettier": "^8.5.0",
 | 
				
			||||||
    "eslint-plugin-import": "^2.25.4",
 | 
					    "eslint-plugin-import": "^2.25.4",
 | 
				
			||||||
    "eslint-plugin-jest": "^26.1.2",
 | 
					    "eslint-plugin-jest": "^26.1.3",
 | 
				
			||||||
    "eslint-plugin-prettier": "^4.0.0",
 | 
					    "eslint-plugin-prettier": "^4.0.0",
 | 
				
			||||||
    "eslint-plugin-simple-import-sort": "^7.0.0",
 | 
					    "eslint-plugin-simple-import-sort": "^7.0.0",
 | 
				
			||||||
    "jest": "^27.5.1",
 | 
					    "jest": "^27.5.1",
 | 
				
			||||||
    "jest-circus": "^27.5.1",
 | 
					    "jest-circus": "^27.5.1",
 | 
				
			||||||
    "nock": "^11.7.0",
 | 
					    "nock": "^11.7.0",
 | 
				
			||||||
    "prettier": "^2.6.0",
 | 
					    "prettier": "^2.6.1",
 | 
				
			||||||
    "ts-jest": "^27.1.3",
 | 
					    "ts-jest": "^27.1.4",
 | 
				
			||||||
    "typescript": "^3.9.9"
 | 
					    "typescript": "^3.9.9"
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,10 +6,7 @@ import * as utils from "./utils/actionUtils";
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
async function run(): Promise<void> {
 | 
					async function run(): Promise<void> {
 | 
				
			||||||
    try {
 | 
					    try {
 | 
				
			||||||
        if (utils.isGhes()) {
 | 
					        if (!utils.isCacheFeatureAvailable()) {
 | 
				
			||||||
            utils.logWarning(
 | 
					 | 
				
			||||||
                "Cache action is not supported on GHES. See https://github.com/actions/cache/issues/505 for more details"
 | 
					 | 
				
			||||||
            );
 | 
					 | 
				
			||||||
            utils.setCacheHitOutput(false);
 | 
					            utils.setCacheHitOutput(false);
 | 
				
			||||||
            return;
 | 
					            return;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,10 +11,7 @@ process.on("uncaughtException", e => utils.logWarning(e.message));
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
async function run(): Promise<void> {
 | 
					async function run(): Promise<void> {
 | 
				
			||||||
    try {
 | 
					    try {
 | 
				
			||||||
        if (utils.isGhes()) {
 | 
					        if (!utils.isCacheFeatureAvailable()) {
 | 
				
			||||||
            utils.logWarning(
 | 
					 | 
				
			||||||
                "Cache action is not supported on GHES. See https://github.com/actions/cache/issues/505 for more details"
 | 
					 | 
				
			||||||
            );
 | 
					 | 
				
			||||||
            return;
 | 
					            return;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,9 +1,13 @@
 | 
				
			|||||||
 | 
					import * as cache from "@actions/cache";
 | 
				
			||||||
import * as core from "@actions/core";
 | 
					import * as core from "@actions/core";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import { Outputs, RefKey, State } from "../constants";
 | 
					import { Outputs, RefKey, State } from "../constants";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export function isGhes(): boolean {
 | 
					export function isGhes(): boolean {
 | 
				
			||||||
    return false;
 | 
					    const ghUrl = new URL(
 | 
				
			||||||
 | 
					        process.env["GITHUB_SERVER_URL"] || "https://github.com"
 | 
				
			||||||
 | 
					    );
 | 
				
			||||||
 | 
					    return ghUrl.hostname.toUpperCase() !== "GITHUB.COM";
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export function isExactKeyMatch(key: string, cacheKey?: string): boolean {
 | 
					export function isExactKeyMatch(key: string, cacheKey?: string): boolean {
 | 
				
			||||||
@@ -71,3 +75,20 @@ export function getInputAsInt(
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
    return value;
 | 
					    return value;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export function isCacheFeatureAvailable(): boolean {
 | 
				
			||||||
 | 
					    if (!cache.isFeatureAvailable()) {
 | 
				
			||||||
 | 
					        if (isGhes()) {
 | 
				
			||||||
 | 
					            logWarning(
 | 
				
			||||||
 | 
					                "Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if Actions cache service is enabled or not."
 | 
				
			||||||
 | 
					            );
 | 
				
			||||||
 | 
					        } else {
 | 
				
			||||||
 | 
					            logWarning(
 | 
				
			||||||
 | 
					                "An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions."
 | 
				
			||||||
 | 
					            );
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return false;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    return true;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user