Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
borchero committed Oct 29, 2024
1 parent 0864a81 commit 84ee3a2
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 15 deletions.
17 changes: 10 additions & 7 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 11 additions & 6 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type Inputs = Readonly<{
authUsername?: string
authPassword?: string
authCondaToken?: string
retryCount?: number,
retryCount?: number
postCleanup?: boolean
}>

Expand Down Expand Up @@ -72,7 +72,7 @@ export type Options = Readonly<{
cache?: Cache
pixiBinPath: string
auth?: Auth
retryCount: number,
retryCount: number
postCleanup: boolean
activatedEnvironment?: string
}>
Expand Down

0 comments on commit 84ee3a2

Please sign in to comment.