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:
34
dist/index.js
vendored
34
dist/index.js
vendored
@@ -8219,25 +8219,23 @@ const axios = __nccwpck_require__(6545)
|
|||||||
|
|
||||||
async function getPageBaseUrl() {
|
async function getPageBaseUrl() {
|
||||||
try {
|
try {
|
||||||
if (deployment.requestedDeployment) {
|
const pagesEndpoint = `https://api.github.com/repos/${process.env.GITHUB_REPOSITORY}/pages`
|
||||||
const pagesEndpoint = `https://api.github.com/repos/${process.env.GITHUB_REPOSITORY}/pages`
|
const response = await axios.get(
|
||||||
const response = await axios.get(
|
pagesEndpoint,
|
||||||
pagesEndpoint,
|
{},
|
||||||
{},
|
{
|
||||||
{
|
headers: {
|
||||||
headers: {
|
Accept: 'application/vnd.github.v3+json',
|
||||||
Accept: 'application/vnd.github.v3+json',
|
Authorization: `Bearer ${process.env.GITHUB_TOKEN}`,
|
||||||
Authorization: `Bearer ${process.env.GITHUB_TOKEN}`,
|
'Content-type': 'application/json'
|
||||||
'Content-type': 'application/json'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
)
|
}
|
||||||
|
)
|
||||||
pageObject = response.data
|
|
||||||
core.info(JSON.stringify(pageObject))
|
pageObject = response.data
|
||||||
core.setOutput('base_url', pageObject.html_url)
|
core.info(JSON.stringify(pageObject))
|
||||||
core.info(`Get the Base URL to the page with endpoint ${pagesEndpoint}`)
|
core.setOutput('base_url', pageObject.html_url)
|
||||||
}
|
core.info(`Get the Base URL to the page with endpoint ${pagesEndpoint}`)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.info('Get on the Page failed', e)
|
console.info('Get on the Page failed', e)
|
||||||
process.exit(1)
|
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