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 7dd1a2a commit 6c4a710
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/uploadScreenShot.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { encode } from "https://deno.land/[email protected]/encoding/base64.ts";
import { sleep } from "https://deno.land/x/sleep/mod.ts";
import { sleep } from "https://deno.land/x/sleep@v1.2.1/mod.ts";

const GITHUB_API_URL = "https://api.github.com";
const AUTHOR_NAME = "tubone24";
Expand Down Expand Up @@ -30,6 +30,7 @@ const content = await fetch(`${GITHUB_API_URL}/repos/${gitHubRepo}/contents/docs
});

if (content.ok) {
console.log("already have contents");
const contentJson = await content.json();
console.log(contentJson.sha)
const gitHubDeletePayload = {
Expand Down

0 comments on commit 6c4a710

Please sign in to comment.