Skip to content

Commit 7dcdeb4

Browse files
authored
feat: switch netlify tld to .app (#3)
* feat: switch netlify tld to .app * feat: adding test site for pr previews
1 parent 13daa61 commit 7dcdeb4

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ jobs:
1111
uses: ./ # Uses an action in the root directory
1212
id: waitFor200
1313
with:
14-
site_name: "jakepartusch"
14+
site_name: "happy-kilby-80bc73"
1515
max_timeout: 60

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Do you have other Github actions (Lighthouse, Cypress, etc) that depend on the N
66

77
### `site_name`
88

9-
**Required** The name of the Netlify site to reach `https://{site_name}.netlify.com`
9+
**Required** The name of the Netlify site to reach `https://{site_name}.netlify.app`
1010

1111
### `max_timeout`
1212

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const waitForUrl = async (url, MAX_TIMEOUT) => {
1010
return;
1111
} catch (e) {
1212
console.log("Url unavailable, retrying...");
13-
await new Promise(r => setTimeout(r, 2000));
13+
await new Promise((r) => setTimeout(r, 2000));
1414
}
1515
}
1616
core.setFailed(`Timeout reached: Unable to connect to ${url}`);
@@ -29,7 +29,7 @@ const run = async () => {
2929
if (!siteName) {
3030
core.setFailed("Required field `site_name` was not provided");
3131
}
32-
const url = `https://deploy-preview-${PR_NUMBER}--${siteName}.netlify.com`;
32+
const url = `https://deploy-preview-${PR_NUMBER}--${siteName}.netlify.app`;
3333
core.setOutput("url", url);
3434
console.log(`Waiting for a 200 from: ${url}`);
3535
await waitForUrl(url, MAX_TIMEOUT);

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"test": "echo \"Error: no test specified\" && exit 1",
8+
"build": "echo \"Built successfully\""
89
},
910
"keywords": [],
1011
"author": "",

site/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<html>
2+
<h1>Hello World</h1>
3+
</html>

0 commit comments

Comments
 (0)