diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1ff65461..893eb382 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,5 +11,5 @@ jobs: uses: ./ # Uses an action in the root directory id: waitFor200 with: - site_name: "jakepartusch" + site_name: "happy-kilby-80bc73" max_timeout: 60 diff --git a/README.md b/README.md index 0b916226..7369d843 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Do you have other Github actions (Lighthouse, Cypress, etc) that depend on the N ### `site_name` -**Required** The name of the Netlify site to reach `https://{site_name}.netlify.com` +**Required** The name of the Netlify site to reach `https://{site_name}.netlify.app` ### `max_timeout` diff --git a/index.js b/index.js index 435fd8bd..2cc710f0 100644 --- a/index.js +++ b/index.js @@ -10,7 +10,7 @@ const waitForUrl = async (url, MAX_TIMEOUT) => { return; } catch (e) { console.log("Url unavailable, retrying..."); - await new Promise(r => setTimeout(r, 2000)); + await new Promise((r) => setTimeout(r, 2000)); } } core.setFailed(`Timeout reached: Unable to connect to ${url}`); @@ -29,7 +29,7 @@ const run = async () => { if (!siteName) { core.setFailed("Required field `site_name` was not provided"); } - const url = `https://deploy-preview-${PR_NUMBER}--${siteName}.netlify.com`; + const url = `https://deploy-preview-${PR_NUMBER}--${siteName}.netlify.app`; core.setOutput("url", url); console.log(`Waiting for a 200 from: ${url}`); await waitForUrl(url, MAX_TIMEOUT); diff --git a/package.json b/package.json index 4b2bca21..f76b21fd 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "build": "echo \"Built successfully\"" }, "keywords": [], "author": "", diff --git a/site/index.html b/site/index.html new file mode 100644 index 00000000..6e40cd29 --- /dev/null +++ b/site/index.html @@ -0,0 +1,3 @@ + +

Hello World

+