fix: add missing await to core.group calls (#305)

This commit is contained in:
Sora Morimoto 2025-10-31 22:34:27 +09:00 committed by GitHub
parent f94c8d5238
commit 3a0b1ebdc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

6
dist/index.js generated vendored
View file

@ -50284,7 +50284,7 @@ const testMise = async () => mise(['--version']);
const miseInstall = async () => mise([`install ${core.getInput('install_args')}`]);
const miseLs = async () => mise([`ls`]);
const miseReshim = async () => mise([`reshim`, `-f`]);
const mise = async (args) => core.group(`Running mise ${args.join(' ')}`, async () => {
const mise = async (args) => await core.group(`Running mise ${args.join(' ')}`, async () => {
const cwd = core.getInput('working_directory') ||
core.getInput('install_dir') ||
process.cwd();
@ -50301,7 +50301,7 @@ const mise = async (args) => core.group(`Running mise ${args.join(' ')}`, async
return exec.exec('mise', args, { cwd, env });
}
});
const writeFile = async (p, body) => core.group(`Writing ${p}`, async () => {
const writeFile = async (p, body) => await core.group(`Writing ${p}`, async () => {
core.info(`Body:\n${body}`);
await fs.promises.writeFile(p, body, { encoding: 'utf8' });
});
@ -50320,7 +50320,7 @@ function miseDir() {
return path.join(os.homedir(), '.local', 'share', 'mise');
}
async function saveCache(cacheKey) {
core.group(`Saving mise cache`, async () => {
await core.group(`Saving mise cache`, async () => {
const cachePath = miseDir();
if (!fs.existsSync(cachePath)) {
throw new Error(`Cache folder path does not exist on disk: ${cachePath}`);

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View file

@ -343,7 +343,7 @@ const miseInstall = async (): Promise<number> =>
const miseLs = async (): Promise<number> => mise([`ls`])
const miseReshim = async (): Promise<number> => mise([`reshim`, `-f`])
const mise = async (args: string[]): Promise<number> =>
core.group(`Running mise ${args.join(' ')}`, async () => {
await core.group(`Running mise ${args.join(' ')}`, async () => {
const cwd =
core.getInput('working_directory') ||
core.getInput('install_dir') ||
@ -363,7 +363,7 @@ const mise = async (args: string[]): Promise<number> =>
})
const writeFile = async (p: fs.PathLike, body: string): Promise<void> =>
core.group(`Writing ${p}`, async () => {
await core.group(`Writing ${p}`, async () => {
core.info(`Body:\n${body}`)
await fs.promises.writeFile(p, body, { encoding: 'utf8' })
})
@ -384,7 +384,7 @@ function miseDir(): string {
}
async function saveCache(cacheKey: string): Promise<void> {
core.group(`Saving mise cache`, async () => {
await core.group(`Saving mise cache`, async () => {
const cachePath = miseDir()
if (!fs.existsSync(cachePath)) {