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:
3
.github/workflows/staging-deploy-pr.yml
vendored
3
.github/workflows/staging-deploy-pr.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user