mirror of
https://github.com/actions/configure-pages.git
synced 2026-03-30 18:14:51 +00:00
Update index.js
This commit is contained in:
@@ -3,7 +3,6 @@ const axios = require('axios')
|
|||||||
|
|
||||||
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,
|
||||||
@@ -21,7 +20,6 @@ async function getPageBaseUrl() {
|
|||||||
core.info(JSON.stringify(pageObject))
|
core.info(JSON.stringify(pageObject))
|
||||||
core.setOutput('base_url', pageObject.html_url)
|
core.setOutput('base_url', pageObject.html_url)
|
||||||
core.info(`Get the Base URL to the page with endpoint ${pagesEndpoint}`)
|
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user