I've been doing axios.post wrong the whole time :o

This commit is contained in:
Jess Bees
2022-06-16 10:51:11 -04:00
parent a0e3ad5b25
commit 39ec7adae0
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@@ -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

File diff suppressed because one or more lines are too long

View File

@@ -7,13 +7,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')