mirror of
https://github.com/actions/configure-pages.git
synced 2025-12-08 16:16:09 +00:00
try some logging
This commit is contained in:
10
dist/index.js
vendored
10
dist/index.js
vendored
@@ -13035,15 +13035,17 @@ async function enablePagesSite({ repositoryNwo, githubToken, proxy }) {
|
||||
}
|
||||
|
||||
async function getPagesSite({ repositoryNwo, githubToken, proxy }) {
|
||||
console.log('Using proxy:', proxy)
|
||||
const pagesEndpoint = `${getApiBaseUrl()}/repos/${repositoryNwo}/pages`
|
||||
|
||||
const response = await axios.get(pagesEndpoint, {
|
||||
...(proxy ? {httpsAgent: HPA(proxy)} : {}),
|
||||
const config = {
|
||||
...(proxy ? { httpsAgent: HPA(proxy) } : {}),
|
||||
headers: {
|
||||
Accept: 'application/vnd.github.v3+json',
|
||||
Authorization: `Bearer ${githubToken}`
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const response = await axios.get(pagesEndpoint, config)
|
||||
|
||||
const pageObject = response.data
|
||||
return pageObject
|
||||
|
||||
Reference in New Issue
Block a user