mirror of
				https://kkgithub.com/actions/cache.git
				synced 2025-10-31 18:51:49 +08:00 
			
		
		
		
	Compare commits
	
		
			9 Commits
		
	
	
		
			aiqiaoy/wi
			...
			fix-345
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 01b0229624 | |||
| c4678ef19f | |||
| fe28a720e4 | |||
| 84dee78cdb | |||
| bd9fe45728 | |||
| e9d6e93306 | |||
| a89dcfa06d | |||
| 114965806a | |||
| 2bdaf00273 | 
							
								
								
									
										2
									
								
								.github/CODEOWNERS
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/CODEOWNERS
									
									
									
									
										vendored
									
									
								
							| @ -1 +1 @@ | |||||||
| * @actions/artifacts-actions | * @artifacts-actions | ||||||
|  | |||||||
							
								
								
									
										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.5 | version: 1.0.4 | ||||||
| type: npm | type: npm | ||||||
| summary: Actions cache lib | summary: Actions cache lib | ||||||
| homepage: https://github.com/actions/toolkit/tree/main/packages/cache | homepage: https://github.com/actions/toolkit/tree/main/packages/cache | ||||||
|  | |||||||
							
								
								
									
										30
									
								
								.licenses/npm/@actions/glob.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										30
									
								
								.licenses/npm/@actions/glob.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,20 +1,30 @@ | |||||||
| --- | --- | ||||||
| name: "@actions/glob" | name: "@actions/glob" | ||||||
| version: 0.1.1 | version: 0.1.0 | ||||||
| type: npm | type: npm | ||||||
| summary: Actions glob lib | summary: Actions glob lib | ||||||
| homepage: https://github.com/actions/toolkit/tree/main/packages/glob | homepage: https://github.com/actions/toolkit/tree/master/packages/glob | ||||||
| license: mit | license: mit | ||||||
| licenses: | licenses: | ||||||
| - sources: LICENSE.md | - sources: Auto-generated MIT license text | ||||||
|   text: |- |   text: | | ||||||
|     The MIT License (MIT) |     MIT License | ||||||
|  |  | ||||||
|     Copyright 2019 GitHub |     Permission is hereby granted, free of charge, to any person obtaining a copy | ||||||
|  |     of this software and associated documentation files (the "Software"), to deal | ||||||
|  |     in the Software without restriction, including without limitation the rights | ||||||
|  |     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||||
|  |     copies of the Software, and to permit persons to whom the Software is | ||||||
|  |     furnished to do so, subject to the following conditions: | ||||||
|  |  | ||||||
|     Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |     The above copyright notice and this permission notice shall be included in all | ||||||
|  |     copies or substantial portions of the Software. | ||||||
|  |  | ||||||
|     The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. |     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||||
|  |     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||||
|     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||||
|  |     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||||
|  |     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||||
|  |     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||||||
|  |     SOFTWARE. | ||||||
| notices: [] | notices: [] | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								.licenses/npm/@azure/core-http.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								.licenses/npm/@azure/core-http.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,6 +1,6 @@ | |||||||
| --- | --- | ||||||
| name: "@azure/core-http" | name: "@azure/core-http" | ||||||
| version: 1.2.1 | version: 1.1.9 | ||||||
| type: npm | type: npm | ||||||
| summary: Isomorphic client Runtime for Typescript/node.js/browser javascript client | summary: Isomorphic client Runtime for Typescript/node.js/browser javascript client | ||||||
|   libraries generated using AutoRest |   libraries generated using AutoRest | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								.licenses/npm/@azure/storage-blob.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								.licenses/npm/@azure/storage-blob.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,6 +1,6 @@ | |||||||
| --- | --- | ||||||
| name: "@azure/storage-blob" | name: "@azure/storage-blob" | ||||||
| version: 12.3.0 | version: 12.2.1 | ||||||
| type: npm | type: npm | ||||||
| summary: Microsoft Azure Storage SDK for JavaScript - Blob | summary: Microsoft Azure Storage SDK for JavaScript - Blob | ||||||
| homepage: https://github.com/Azure/azure-sdk-for-js#readme | homepage: https://github.com/Azure/azure-sdk-for-js#readme | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| --- | --- | ||||||
| name: uuid | name: uuid | ||||||
| version: 8.3.2 | version: 8.3.1 | ||||||
| type: npm | type: npm | ||||||
| summary: RFC4122 (v1, v4, and v5) UUIDs | summary: RFC4122 (v1, v4, and v5) UUIDs | ||||||
| homepage: https://github.com/uuidjs/uuid#readme | homepage: https://github.com/uuidjs/uuid#readme | ||||||
| @ -213,6 +213,39 @@ test("getInputAsArray handles empty lines correctly", () => { | |||||||
|     expect(actionUtils.getInputAsArray("foo")).toEqual(["bar", "baz"]); |     expect(actionUtils.getInputAsArray("foo")).toEqual(["bar", "baz"]); | ||||||
| }); | }); | ||||||
|  |  | ||||||
|  | test("getInputAsArray sorts files correctly", () => { | ||||||
|  |     testUtils.setInput( | ||||||
|  |         "foo", | ||||||
|  |         "bar\n!baz\nwaldo\nqux\nquux\ncorge\ngrault\ngarply" | ||||||
|  |     ); | ||||||
|  |     expect(actionUtils.getInputAsArray("foo")).toEqual([ | ||||||
|  |         "!baz", | ||||||
|  |         "bar", | ||||||
|  |         "corge", | ||||||
|  |         "garply", | ||||||
|  |         "grault", | ||||||
|  |         "quux", | ||||||
|  |         "qux", | ||||||
|  |         "waldo" | ||||||
|  |     ]); | ||||||
|  | }); | ||||||
|  |  | ||||||
|  | test("getInputAsArray removes spaces after ! at the beginning", () => { | ||||||
|  |     testUtils.setInput( | ||||||
|  |         "foo", | ||||||
|  |         "!   bar\n!  baz\n! qux\n!quux\ncorge\ngrault! garply\n!\r\t waldo" | ||||||
|  |     ); | ||||||
|  |     expect(actionUtils.getInputAsArray("foo")).toEqual([ | ||||||
|  |         "!bar", | ||||||
|  |         "!baz", | ||||||
|  |         "!quux", | ||||||
|  |         "!qux", | ||||||
|  |         "!waldo", | ||||||
|  |         "corge", | ||||||
|  |         "grault! garply" | ||||||
|  |     ]); | ||||||
|  | }); | ||||||
|  |  | ||||||
| test("getInputAsInt returns undefined if input not set", () => { | test("getInputAsInt returns undefined if input not set", () => { | ||||||
|     expect(actionUtils.getInputAsInt("undefined")).toBeUndefined(); |     expect(actionUtils.getInputAsInt("undefined")).toBeUndefined(); | ||||||
| }); | }); | ||||||
|  | |||||||
| @ -97,7 +97,7 @@ test("restore with no key", async () => { | |||||||
| test("restore with too many keys should fail", async () => { | test("restore with too many keys should fail", async () => { | ||||||
|     const path = "node_modules"; |     const path = "node_modules"; | ||||||
|     const key = "node-test"; |     const key = "node-test"; | ||||||
|     const restoreKeys = [...Array(20).keys()].map(x => x.toString()); |     const restoreKeys = [...Array(20).keys()].map(x => x.toString()).sort(); | ||||||
|     testUtils.setInputs({ |     testUtils.setInputs({ | ||||||
|         path: path, |         path: path, | ||||||
|         key, |         key, | ||||||
|  | |||||||
							
								
								
									
										50457
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										50457
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										50457
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										50457
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										36
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										36
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							| @ -5,9 +5,9 @@ | |||||||
|   "requires": true, |   "requires": true, | ||||||
|   "dependencies": { |   "dependencies": { | ||||||
|     "@actions/cache": { |     "@actions/cache": { | ||||||
|       "version": "1.0.5", |       "version": "1.0.4", | ||||||
|       "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-1.0.5.tgz", |       "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-1.0.4.tgz", | ||||||
|       "integrity": "sha512-TcvJOduwsPP27KLmIa5cqXsQYFK2GzILcEpnhvYmhGwi1aYx9XwhKmp6Im8X6DJMBxbvupKPsOntG6f6sSkIPA==", |       "integrity": "sha512-1grYfbu8P6JDDHc40eOI5tQDRcAxMwq5HBWhaCqEg9o/ixDRZfwPHlQvQAop2ZzFCjF2ns0ENQOIBAH8GNn+zA==", | ||||||
|       "requires": { |       "requires": { | ||||||
|         "@actions/core": "^1.2.6", |         "@actions/core": "^1.2.6", | ||||||
|         "@actions/exec": "^1.0.1", |         "@actions/exec": "^1.0.1", | ||||||
| @ -34,11 +34,11 @@ | |||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     "@actions/glob": { |     "@actions/glob": { | ||||||
|       "version": "0.1.1", |       "version": "0.1.0", | ||||||
|       "resolved": "https://registry.npmjs.org/@actions/glob/-/glob-0.1.1.tgz", |       "resolved": "https://registry.npmjs.org/@actions/glob/-/glob-0.1.0.tgz", | ||||||
|       "integrity": "sha512-ikM4GVZOgSGDNTjv0ECJ8AOqmDqQwtO4K1M4P465C9iikRq34+FwCjUVSwzgOYDP85qtddyWpzBw5lTub/9Xmg==", |       "integrity": "sha512-lx8SzyQ2FE9+UUvjqY1f28QbTJv+w8qP7kHHbfQRhphrlcx0Mdmm1tZdGJzfxv1jxREa/sLW4Oy8CbGQKCJySA==", | ||||||
|       "requires": { |       "requires": { | ||||||
|         "@actions/core": "^1.2.6", |         "@actions/core": "^1.2.0", | ||||||
|         "minimatch": "^3.0.4" |         "minimatch": "^3.0.4" | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
| @ -112,9 +112,9 @@ | |||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     "@azure/core-http": { |     "@azure/core-http": { | ||||||
|       "version": "1.2.1", |       "version": "1.1.9", | ||||||
|       "resolved": "https://registry.npmjs.org/@azure/core-http/-/core-http-1.2.1.tgz", |       "resolved": "https://registry.npmjs.org/@azure/core-http/-/core-http-1.1.9.tgz", | ||||||
|       "integrity": "sha512-vPHIQXjLVs4iin2BUaj7/sqIAfGq3MW1TLEc3yYKFNpi/sBQn2KI0g+Ow0EQYvAkkHhTHGArA7JKhcjsnJMGLw==", |       "integrity": "sha512-wM0HMRNQaE2NtTHb+9FXF7uxUqaAHFTMVu6OzlEll6gUGybcDqM7+9Oklp33BhEfq+ZumpCoqxq3njNbMHuf/w==", | ||||||
|       "requires": { |       "requires": { | ||||||
|         "@azure/abort-controller": "^1.0.0", |         "@azure/abort-controller": "^1.0.0", | ||||||
|         "@azure/core-auth": "^1.1.3", |         "@azure/core-auth": "^1.1.3", | ||||||
| @ -129,7 +129,7 @@ | |||||||
|         "tough-cookie": "^4.0.0", |         "tough-cookie": "^4.0.0", | ||||||
|         "tslib": "^2.0.0", |         "tslib": "^2.0.0", | ||||||
|         "tunnel": "^0.0.6", |         "tunnel": "^0.0.6", | ||||||
|         "uuid": "^8.3.0", |         "uuid": "^8.1.0", | ||||||
|         "xml2js": "^0.4.19" |         "xml2js": "^0.4.19" | ||||||
|       }, |       }, | ||||||
|       "dependencies": { |       "dependencies": { | ||||||
| @ -159,9 +159,9 @@ | |||||||
|           "integrity": "sha512-uZtkfKblCEQtZKBF6EBXVZeQNl82yqtDQdv+eck8u7tdPxjLu2/lp5/uPW+um2tpuxINHWy3GhiccY7QgEaVHQ==" |           "integrity": "sha512-uZtkfKblCEQtZKBF6EBXVZeQNl82yqtDQdv+eck8u7tdPxjLu2/lp5/uPW+um2tpuxINHWy3GhiccY7QgEaVHQ==" | ||||||
|         }, |         }, | ||||||
|         "uuid": { |         "uuid": { | ||||||
|           "version": "8.3.2", |           "version": "8.3.1", | ||||||
|           "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", |           "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.1.tgz", | ||||||
|           "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" |           "integrity": "sha512-FOmRr+FmWEIG8uhZv6C2bTgEVXsHk08kE7mPlrBbEe+c3r9pjceVPgupIfNIhc4yx55H69OXANrUaSuu9eInKg==" | ||||||
|         } |         } | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
| @ -249,12 +249,12 @@ | |||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     "@azure/storage-blob": { |     "@azure/storage-blob": { | ||||||
|       "version": "12.3.0", |       "version": "12.2.1", | ||||||
|       "resolved": "https://registry.npmjs.org/@azure/storage-blob/-/storage-blob-12.3.0.tgz", |       "resolved": "https://registry.npmjs.org/@azure/storage-blob/-/storage-blob-12.2.1.tgz", | ||||||
|       "integrity": "sha512-nCySzNfm782pEW3sg9GHj1zE4gBeVVMeEBdWb4MefifrCwQQOoz5cXZTNFiUJAJqAO+/72r2UjZcUwHk/QmzkA==", |       "integrity": "sha512-erqCSmDL8b/AHZi94nq+nCE+2whQmvBDkAv4N9uic0MRac/gRyZqnsqkfrun/gr2rZo+qVtnMenwkkE3roXn8Q==", | ||||||
|       "requires": { |       "requires": { | ||||||
|         "@azure/abort-controller": "^1.0.0", |         "@azure/abort-controller": "^1.0.0", | ||||||
|         "@azure/core-http": "^1.2.0", |         "@azure/core-http": "^1.1.6", | ||||||
|         "@azure/core-lro": "^1.0.2", |         "@azure/core-lro": "^1.0.2", | ||||||
|         "@azure/core-paging": "^1.1.1", |         "@azure/core-paging": "^1.1.1", | ||||||
|         "@azure/core-tracing": "1.0.0-preview.9", |         "@azure/core-tracing": "1.0.0-preview.9", | ||||||
|  | |||||||
| @ -23,7 +23,7 @@ | |||||||
|   "author": "GitHub", |   "author": "GitHub", | ||||||
|   "license": "MIT", |   "license": "MIT", | ||||||
|   "dependencies": { |   "dependencies": { | ||||||
|     "@actions/cache": "^1.0.5", |     "@actions/cache": "^1.0.4", | ||||||
|     "@actions/core": "^1.2.6", |     "@actions/core": "^1.2.6", | ||||||
|     "@actions/exec": "^1.0.1", |     "@actions/exec": "^1.0.1", | ||||||
|     "@actions/io": "^1.0.1" |     "@actions/io": "^1.0.1" | ||||||
|  | |||||||
| @ -60,8 +60,9 @@ export function getInputAsArray( | |||||||
|     return core |     return core | ||||||
|         .getInput(name, options) |         .getInput(name, options) | ||||||
|         .split("\n") |         .split("\n") | ||||||
|         .map(s => s.trim()) |         .map(s => s.replace(/^!\s+/, "!").trim()) | ||||||
|         .filter(x => x !== ""); |         .filter(x => x !== "") | ||||||
|  |         .sort(); | ||||||
| } | } | ||||||
|  |  | ||||||
| export function getInputAsInt( | export function getInputAsInt( | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	