File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 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
1616
1717Optional — The amount of time to spend waiting on Netlify. Defaults to ` 60 ` seconds
1818
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+
1923## Outputs
2024
2125### ` url `
Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ inputs:
1313 max_timeout :
1414 description : " The max time to run the action"
1515 required : false
16+ base_path :
17+ description : " Base path to test"
18+ required : false
19+ default : " /"
1620outputs :
1721 url :
1822 description : " The fully qualified deploy preview URL"
Original file line number Diff line number Diff line change @@ -26,10 +26,11 @@ const run = async () => {
2626 }
2727 const MAX_TIMEOUT = Number ( core . getInput ( "max_timeout" ) ) || 60 ;
2828 const siteName = core . getInput ( "site_name" ) ;
29+ const basePath = core . getInput ( "base_path" ) ;
2930 if ( ! siteName ) {
3031 core . setFailed ( "Required field `site_name` was not provided" ) ;
3132 }
32- const url = `https://deploy-preview-${ PR_NUMBER } --${ siteName } .netlify.app` ;
33+ const url = `https://deploy-preview-${ PR_NUMBER } --${ siteName } .netlify.app${ basePath } ` ;
3334 core . setOutput ( "url" , url ) ;
3435 const extraHeaders = core . getInput ( "request_headers" ) ;
3536 const headers = ! extraHeaders ? { } : JSON . parse ( extraHeaders )
You can’t perform that action at this time.
0 commit comments