From 2502eaa2214b9785a84b41ef2acc4a822499f5cf Mon Sep 17 00:00:00 2001 From: khai96_ Date: Sat, 6 Dec 2025 11:17:32 +0700 Subject: [PATCH] style: no star imports --- dist/index.js | Bin 1509731 -> 1508866 bytes src/cache-restore/run.ts | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 90e05629e9d74f2995fbe94a4633b45040ec4038..c315d0680ca5e97b4e228b0c5737a27ababa3d9c 100644 GIT binary patch delta 325 zcmaDnDW<6>W&;z`bbEWwvdK4D)!g!J^E3=C%neO7t&{Wfic1tyfC8qLKmZdc00~%F zm>aA*|a_^P+Fon`3r|3V@k6cXS*6FBM>tI zF*6Xe05K~NvjH(X5OV-ANDUVda|1CC5c2{t9}x2cu>cSY0}^G delta 356 zcmZqbiFrIJW&;z`_76f#Ul})_5r|}*KH&gk=i~||HK{b)JPkt&b3;>2>*V~r;u3{Q zpn$0*5KLaMUP-{h)WB2|Cgp2eF!>2n5M$+Jb7oB*1sA=H#NrIM%$(HX$@$F7WqkEg zQqvMkb4v6Qi;^=mG;4KLs`F|StThaDDkmGUC;|0_vZ$-(+a{JLW|ja&)AWi`i%as0 zQk@f%Gg37*qDx|RGBqLU7qTeu=L2odOw&-z*Q^Gcae+l0XvPl~MfQBCDg{<$mi*cT z&FO)L?81|ySk(j+%JkAxOI#~bll@Ce3Q9{RPi8e_tZY8Y+J2Ok5r~<9m>Gy!fEXmk y2E^<@%mKulK+FZi+(66&#JoVv2gLk9EC9rUKr95r!aytn#G*hfHvK58xGeyO4RkyJ diff --git a/src/cache-restore/run.ts b/src/cache-restore/run.ts index 017c2a9..02a7469 100644 --- a/src/cache-restore/run.ts +++ b/src/cache-restore/run.ts @@ -1,7 +1,7 @@ import { restoreCache } from '@actions/cache' import { debug, info, saveState, setOutput } from '@actions/core' -import * as exec from '@actions/exec' -import * as glob from '@actions/glob' +import { getExecOutput } from '@actions/exec' +import { hashFiles } from '@actions/glob' import os from 'os' import { Inputs } from '../inputs' @@ -9,7 +9,7 @@ export async function runRestoreCache(inputs: Inputs) { const cachePath = await getCacheDirectory() saveState('cache_path', cachePath) - const fileHash = await glob.hashFiles(inputs.cacheDependencyPath) + const fileHash = await hashFiles(inputs.cacheDependencyPath) if (!fileHash) { throw new Error('Some specified paths were not resolved, unable to cache dependencies.') } @@ -32,7 +32,7 @@ export async function runRestoreCache(inputs: Inputs) { } async function getCacheDirectory() { - const { stdout } = await exec.getExecOutput('pnpm store path --silent') + const { stdout } = await getExecOutput('pnpm store path --silent') const cacheFolderPath = stdout.trim() debug(`Cache folder is set to "${cacheFolderPath}"`) return cacheFolderPath