From 0f8af1c430c27bd6a237c817e229afdb865fdb03 Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Tue, 5 Oct 2021 13:34:12 -0500 Subject: [PATCH] Inline the 'await-sleep' module for the deploy workflow to avoid the need to checkout and install npm modules (#21896) --- .github/workflows/staging-deploy-pr.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/staging-deploy-pr.yml b/.github/workflows/staging-deploy-pr.yml index db611d66e9..ca3a18bbd1 100644 --- a/.github/workflows/staging-deploy-pr.yml +++ b/.github/workflows/staging-deploy-pr.yml @@ -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