1
0
mirror of synced 2026-01-06 06:02:35 -05:00

Inline the 'await-sleep' module for the deploy workflow to avoid the need to checkout and install npm modules (#21896)

This commit is contained in:
James M. Greene
2021-10-05 13:34:12 -05:00
committed by GitHub
parent 5136750fd2
commit 0f8af1c430

View File

@@ -209,7 +209,8 @@ jobs:
PR_NUMBER: ${{ needs.pr-metadata.outputs.number }}
with:
script: |
const sleep = require('await-sleep') // Does not require ESM
// Equivalent of the 'await-sleep' module without the install
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms))
const blockingLabel = 'automated-block-deploy'
const { owner, repo } = context.repo