Skip to content

Commit 4119eaa

Browse files
committed
chore: actually build the action
1 parent f800f28 commit 4119eaa

File tree

3 files changed

+28
-21
lines changed

3 files changed

+28
-21
lines changed

dist/index.js

Lines changed: 19 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/upload.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ export async function upload({
3131
throw new Error('invalid OpenAPI path')
3232
}
3333

34-
const formData: Record<string, string | number | boolean> = {
35-
// github_repo: process.env.GITHUB_REPOSITORY!,
36-
// github_repo_id: process.env.GITHUB_REPOSITORY_ID!,
37-
spec: data.toString(),
38-
}
34+
// const formData: Record<string, string | number | boolean> = {
35+
// // github_repo: process.env.GITHUB_REPOSITORY!,
36+
// // github_repo_id: process.env.GITHUB_REPOSITORY_ID!,
37+
// spec: data.toString(),
38+
// }
3939

40-
// const formData = new FormData();
40+
const formData = new FormData();
4141

42-
// formData.set('spec', data.toString());
42+
formData.set('spec', data.toString());
4343

4444
// if (dryRun) {
4545
// formData['dry-run'] = dryRun
@@ -56,7 +56,7 @@ export async function upload({
5656
body,
5757
headers: {
5858
Authorization: `Bearer ${heyApiToken}`,
59-
// 'Content-Type': 'multipart/form-data'
59+
'Content-Type': 'multipart/form-data'
6060
},
6161
method: 'POST'
6262
})

0 commit comments

Comments
 (0)