diff --git a/lib/post.js b/lib/post.js index 2e0319f..a0efe15 100644 --- a/lib/post.js +++ b/lib/post.js @@ -10,6 +10,8 @@ import { request } from "@octokit/request"; export async function post(core, request) { const token = core.getState("token"); + if (!token) return; + await request("DELETE /installation/token", { headers: { authorization: `token ${token}`,