From 84ee3a223f09eeac466aa737ec8f0999e82145c0 Mon Sep 17 00:00:00 2001 From: Oliver Borchert Date: Tue, 29 Oct 2024 22:13:55 +0100 Subject: [PATCH] Fix lint --- dist/index.js | 17 ++++++++++------- src/main.ts | 17 +++++++++++------ src/options.ts | 4 ++-- 3 files changed, 23 insertions(+), 15 deletions(-) diff --git a/dist/index.js b/dist/index.js index 084a0c2..8355a4f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -65439,13 +65439,16 @@ var run = async () => { } addPixiToPath(); await pixiLogin(); - await (0, import_async_retry.default)(async () => { - await pixiInstall(); - }, { - retries: options.retryCount, - minTimeout: 5e3, - randomize: true - }); + await (0, import_async_retry.default)( + async () => { + await pixiInstall(); + }, + { + retries: options.retryCount, + minTimeout: 5e3, + randomize: true + } + ); await generateInfo(); await generateList(); if (options.activatedEnvironment) { diff --git a/src/main.ts b/src/main.ts index c3ba77b..8af646f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,7 +6,7 @@ import * as core from '@actions/core' import { downloadTool } from '@actions/tool-cache' import type { PixiSource } from './options' import { options } from './options' -import retry from 'async-retry'; +import retry from 'async-retry' import { execute, getPixiUrlFromVersion, pixiCmd } from './util' import { saveCache, tryRestoreCache } from './cache' import { activateEnvironment } from './activate' @@ -124,11 +124,16 @@ const run = async () => { } addPixiToPath() await pixiLogin() - await retry(async () => { await pixiInstall() }, { - retries: options.retryCount, - minTimeout: 5000, - randomize: true - }) + await retry( + async () => { + await pixiInstall() + }, + { + retries: options.retryCount, + minTimeout: 5000, + randomize: true + } + ) await generateInfo() await generateList() if (options.activatedEnvironment) { diff --git a/src/options.ts b/src/options.ts index 52af6e6..baab3b9 100644 --- a/src/options.ts +++ b/src/options.ts @@ -27,7 +27,7 @@ type Inputs = Readonly<{ authUsername?: string authPassword?: string authCondaToken?: string - retryCount?: number, + retryCount?: number postCleanup?: boolean }> @@ -72,7 +72,7 @@ export type Options = Readonly<{ cache?: Cache pixiBinPath: string auth?: Auth - retryCount: number, + retryCount: number postCleanup: boolean activatedEnvironment?: string }>