Skip to content

Commit 13b1c72

Browse files
committed
chore: use dry run
1 parent 29f81f6 commit 13b1c72

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

dist/index.js

Lines changed: 4 additions & 6 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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import path from 'node:path'
66
*/
77
export async function upload({
88
baseUrl = 'https://platform-production-25fb.up.railway.app',
9-
// dryRun,
9+
dryRun,
1010
heyApiToken,
1111
pathToOpenApi
1212
}: {
@@ -29,15 +29,15 @@ export async function upload({
2929

3030
formData.append('spec', new Blob([fs.readFileSync(pathToOpenApi)]), path.basename(pathToOpenApi));
3131

32+
if (dryRun) {
33+
formData.append('dry_run', 'true');
34+
}
35+
3236
// const formData: Record<string, string | number | boolean> = {
3337
// // github_repo: process.env.GITHUB_REPOSITORY!,
3438
// // github_repo_id: process.env.GITHUB_REPOSITORY_ID!,
3539
// }
3640

37-
// if (dryRun) {
38-
// formData['dry-run'] = dryRun
39-
// }
40-
4141
const response = await fetch(`${baseUrl}/v1/specs`, {
4242
body: formData,
4343
headers: {

0 commit comments

Comments
 (0)