Skip to content

Commit

Permalink
delete file
Browse files Browse the repository at this point in the history
  • Loading branch information
tubone24 committed Jan 12, 2023
1 parent 6c4a710 commit 21078c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/uploadScreenShot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ if (content.ok) {
email: AUTHOR_EMAIL,
},
}
await fetch(`${GITHUB_API_URL}/repos/${gitHubRepo}/contents/docs/screenshot/${headRef}/${fileName}`, {
const resp = await fetch(`${GITHUB_API_URL}/repos/${gitHubRepo}/contents/docs/screenshot/${headRef}/${fileName}`, {
method: "DELETE",
headers: gitHubHeaders,
body: JSON.stringify(gitHubDeletePayload),
});
console.log(resp);
}

await sleep(10);
Expand Down

0 comments on commit 21078c3

Please sign in to comment.