mirror of
https://github.com/actions/configure-pages.git
synced 2025-12-08 16:16:09 +00:00
Update dist
This commit is contained in:
9
dist/index.js
vendored
9
dist/index.js
vendored
@@ -8255,6 +8255,7 @@ async function getPageBaseUrl() {
|
||||
|
||||
core.info("GITHUB_TOKEN : " + context.githubToken)
|
||||
|
||||
core.info(`Get the Base URL to the page with endpoint ${pagesEndpoint}`)
|
||||
const response = await axios.get(
|
||||
pagesEndpoint,
|
||||
{
|
||||
@@ -8267,8 +8268,12 @@ async function getPageBaseUrl() {
|
||||
|
||||
pageObject = response.data
|
||||
core.info(JSON.stringify(pageObject))
|
||||
core.setOutput('base_url', pageObject.html_url)
|
||||
core.info(`Get the Base URL to the page with endpoint ${pagesEndpoint}`)
|
||||
|
||||
const siteUrl = new URL(pageObject.html_url)
|
||||
core.setOutput('base_url', siteUrl.href)
|
||||
core.setOutput('origin', siteUrl.origin)
|
||||
core.setOutput('host', siteUrl.host)
|
||||
core.setOutput('base_path', siteUrl.pathname)
|
||||
} catch (e) {
|
||||
console.info('Get on the Page failed', e)
|
||||
process.exit(1)
|
||||
|
||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user