mirror of
https://github.com/actions/configure-pages.git
synced 2025-12-08 08:06: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 {
|
||||
const response = await axios.post(
|
||||
pagesEndpoint,
|
||||
{ build_type: 'workflow' },
|
||||
{
|
||||
headers: {
|
||||
Accept: 'application/vnd.github.v3+json',
|
||||
Authorization: `Bearer ${githubToken}`,
|
||||
'Content-type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify({ build_type: 'workflow' }),
|
||||
}
|
||||
)
|
||||
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
Reference in New Issue
Block a user