mirror of
https://github.com/actions/configure-pages.git
synced 2025-12-08 16:16:09 +00:00
I've been doing axios.post wrong the whole time :o
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -8092,13 +8092,13 @@ async function enablePages({ repositoryNwo, githubToken }) {
|
|||||||
try {
|
try {
|
||||||
const response = await axios.post(
|
const response = await axios.post(
|
||||||
pagesEndpoint,
|
pagesEndpoint,
|
||||||
|
{ build_type: 'workflow' },
|
||||||
{
|
{
|
||||||
headers: {
|
headers: {
|
||||||
Accept: 'application/vnd.github.v3+json',
|
Accept: 'application/vnd.github.v3+json',
|
||||||
Authorization: `Bearer ${githubToken}`,
|
Authorization: `Bearer ${githubToken}`,
|
||||||
'Content-type': 'application/json',
|
'Content-type': 'application/json',
|
||||||
},
|
},
|
||||||
body: JSON.stringify({ build_type: 'workflow' }),
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
core.info('Created pages site')
|
core.info('Created pages site')
|
||||||
|
|||||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -7,13 +7,13 @@ async function enablePages({ repositoryNwo, githubToken }) {
|
|||||||
try {
|
try {
|
||||||
const response = await axios.post(
|
const response = await axios.post(
|
||||||
pagesEndpoint,
|
pagesEndpoint,
|
||||||
|
{ build_type: 'workflow' },
|
||||||
{
|
{
|
||||||
headers: {
|
headers: {
|
||||||
Accept: 'application/vnd.github.v3+json',
|
Accept: 'application/vnd.github.v3+json',
|
||||||
Authorization: `Bearer ${githubToken}`,
|
Authorization: `Bearer ${githubToken}`,
|
||||||
'Content-type': 'application/json',
|
'Content-type': 'application/json',
|
||||||
},
|
},
|
||||||
body: JSON.stringify({ build_type: 'workflow' }),
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
core.info('Created pages site')
|
core.info('Created pages site')
|
||||||
|
|||||||
Reference in New Issue
Block a user