feat: Pass action inputs to OctkitWrapper

This commit is contained in:
Thomas A. Christensen II 2024-01-14 21:40:32 -06:00
parent d8ab760f18
commit ad67a7e0bd

View file

@ -21,6 +21,8 @@ async function run(): Promise<void> {
const token = core.getInput("token")
const version = core.getInput("version")
const get_all = core.getBooleanInput("all")
const cooldown = Number(core.getInput("cooldown"))
const max_retries = Number(core.getInput("max-retries"))
// Check the cache for the Nextflow version that matched last time
if (check_cache(version)) {
@ -28,7 +30,7 @@ async function run(): Promise<void> {
}
// Setup the API
const octokit = await setup_octokit(token)
const octokit = await setup_octokit(token, cooldown, max_retries)
const releases = await pull_releases(octokit)