Update dist

This commit is contained in:
James M. Greene
2022-06-07 14:52:07 -05:00
parent 8202494c81
commit 42f1735373
2 changed files with 17 additions and 19 deletions

34
dist/index.js vendored
View File

@@ -8219,25 +8219,23 @@ const axios = __nccwpck_require__(6545)
async function getPageBaseUrl() {
try {
if (deployment.requestedDeployment) {
const pagesEndpoint = `https://api.github.com/repos/${process.env.GITHUB_REPOSITORY}/pages`
const response = await axios.get(
pagesEndpoint,
{},
{
headers: {
Accept: 'application/vnd.github.v3+json',
Authorization: `Bearer ${process.env.GITHUB_TOKEN}`,
'Content-type': 'application/json'
}
const pagesEndpoint = `https://api.github.com/repos/${process.env.GITHUB_REPOSITORY}/pages`
const response = await axios.get(
pagesEndpoint,
{},
{
headers: {
Accept: 'application/vnd.github.v3+json',
Authorization: `Bearer ${process.env.GITHUB_TOKEN}`,
'Content-type': 'application/json'
}
)
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}`)
}
}
)
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}`)
} catch (e) {
console.info('Get on the Page failed', e)
process.exit(1)