mirror of
https://github.com/actions/cache.git
synced 2025-07-10 21:00:46 +00:00
Add initial minimatch support
This commit is contained in:
parent
84cead4a82
commit
1e233443e8
14 changed files with 202 additions and 108 deletions
12
src/save.ts
12
src/save.ts
|
@ -4,6 +4,7 @@ import * as cacheHttpClient from "./cacheHttpClient";
|
|||
import { Events, Inputs, State } from "./constants";
|
||||
import { createTar } from "./tar";
|
||||
import * as utils from "./utils/actionUtils";
|
||||
import * as pathUtils from "./utils/pathUtils";
|
||||
|
||||
async function run(): Promise<void> {
|
||||
try {
|
||||
|
@ -43,11 +44,12 @@ async function run(): Promise<void> {
|
|||
return;
|
||||
}
|
||||
core.debug(`Cache ID: ${cacheId}`);
|
||||
const cachePaths = core
|
||||
.getInput(Inputs.Path)
|
||||
.split("\n")
|
||||
.filter(x => x !== "")
|
||||
.map(x => utils.resolvePath(x));
|
||||
const cachePaths = pathUtils.expandPaths(
|
||||
core
|
||||
.getInput(Inputs.Path)
|
||||
.split("\n")
|
||||
.filter(x => x !== "")
|
||||
);
|
||||
|
||||
core.debug("Cache Paths:");
|
||||
core.debug(`${JSON.stringify(cachePaths)}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue