1
0
mirror of synced 2025-12-22 11:26:57 -05:00

remove await-sleep, less reliant on external pkgs (#24033)

This commit is contained in:
Mike Surowiec
2022-01-04 15:06:04 -06:00
committed by GitHub
parent a9da0c8681
commit cfbc6f694f
4 changed files with 4 additions and 16 deletions

View File

@@ -1,9 +1,10 @@
#!/usr/bin/env node
import sleep from 'await-sleep'
import got from 'got'
import Heroku from 'heroku-client'
import { setOutput } from '@actions/core'
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
const SLEEP_INTERVAL = 5000
const HEROKU_LOG_LINES_TO_SHOW = 25
const DELAY_FOR_PREBOOT_SWAP = 135000 // 2:15