Skip to content

Commit

Permalink
I've been doing axios.post wrong the whole time :o
Browse files Browse the repository at this point in the history
  • Loading branch information
Jess Bees committed Jun 16, 2022
1 parent a0e3ad5 commit 39ec7ad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/enable-pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 39ec7ad

Please sign in to comment.