mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 15:48:39 +08:00 
			
		
		
		
	changed name
This commit is contained in:
		
							parent
							
								
									0be029b716
								
							
						
					
					
						commit
						770facace5
					
				| 
						 | 
					@ -244,7 +244,7 @@ test("isCacheFeatureAvailable for ac enabled", () => {
 | 
				
			||||||
test("isCacheFeatureAvailable for ac disabled on GHES", () => {
 | 
					test("isCacheFeatureAvailable for ac disabled on GHES", () => {
 | 
				
			||||||
    jest.spyOn(cache, "isFeatureAvailable").mockImplementation(() => false);
 | 
					    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 ArtifactCache service is enabled or not.";
 | 
					    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");
 | 
					    const infoMock = jest.spyOn(core, "info");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    try {
 | 
					    try {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -80,7 +80,7 @@ export function isCacheFeatureAvailable(): boolean {
 | 
				
			||||||
    if (!cache.isFeatureAvailable()) {
 | 
					    if (!cache.isFeatureAvailable()) {
 | 
				
			||||||
        if (isGhes()){
 | 
					        if (isGhes()){
 | 
				
			||||||
            logWarning(
 | 
					            logWarning(
 | 
				
			||||||
                "Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if ArtifactCache service is enabled or not."
 | 
					                "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{
 | 
					        else{
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user