File tree 3 files changed +10
-1
lines changed
3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ Optional — Stringified HTTP Header object key/value pairs to send in requests
16
16
17
17
Optional — The amount of time to spend waiting on Netlify. Defaults to ` 60 ` seconds
18
18
19
+ ### ` base_path `
20
+
21
+ Optional — The page that needs to be tested for 200. Defaults to "/" (eg: ` https://{site_name}.netlify.app{base_path} ` )
22
+
19
23
## Outputs
20
24
21
25
### ` url `
Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ inputs:
13
13
max_timeout :
14
14
description : " The max time to run the action"
15
15
required : false
16
+ base_path :
17
+ description : " Base path to test"
18
+ required : false
19
+ default : " /"
16
20
outputs :
17
21
url :
18
22
description : " The fully qualified deploy preview URL"
Original file line number Diff line number Diff line change @@ -26,10 +26,11 @@ const run = async () => {
26
26
}
27
27
const MAX_TIMEOUT = Number ( core . getInput ( "max_timeout" ) ) || 60 ;
28
28
const siteName = core . getInput ( "site_name" ) ;
29
+ const basePath = core . getInput ( "base_path" ) ;
29
30
if ( ! siteName ) {
30
31
core . setFailed ( "Required field `site_name` was not provided" ) ;
31
32
}
32
- const url = `https://deploy-preview-${ PR_NUMBER } --${ siteName } .netlify.app` ;
33
+ const url = `https://deploy-preview-${ PR_NUMBER } --${ siteName } .netlify.app${ basePath } ` ;
33
34
core . setOutput ( "url" , url ) ;
34
35
const extraHeaders = core . getInput ( "request_headers" ) ;
35
36
const headers = ! extraHeaders ? { } : JSON . parse ( extraHeaders )
You can’t perform that action at this time.
0 commit comments