mirror of
https://github.com/actions/cache.git
synced 2025-07-10 21:00:46 +00:00
Use @actions/glob for pattern matching
This commit is contained in:
parent
1e233443e8
commit
db235cfc56
12 changed files with 4427 additions and 176 deletions
|
@ -4,7 +4,6 @@ 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 {
|
||||
|
@ -44,7 +43,7 @@ async function run(): Promise<void> {
|
|||
return;
|
||||
}
|
||||
core.debug(`Cache ID: ${cacheId}`);
|
||||
const cachePaths = pathUtils.expandPaths(
|
||||
const cachePaths = await utils.expandPaths(
|
||||
core
|
||||
.getInput(Inputs.Path)
|
||||
.split("\n")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue