Skip to content

Commit

Permalink
fixup! Add option to not revoke token
Browse files Browse the repository at this point in the history
  • Loading branch information
tibdex committed Sep 19, 2023
1 parent be108e1 commit e91e1a0
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
import { info, saveState, setOutput, setSecret } from "@actions/core";

import { createInstallationAccessToken } from "./create-installation-access-token.js";
import { parseOptions } from "./parse-options.js";
import { run } from "./run.js";
import { tokenKey } from "./state.js";
import { getInput } from "@actions/core";

await run(async () => {
const options = parseOptions();
const token = await createInstallationAccessToken(options);
setSecret(token);
saveState(tokenKey, token);
setOutput("token", token);
info("Token created successfully");
console.log(JSON.stringify({value: getInput("revoke")}));
});

0 comments on commit e91e1a0

Please sign in to comment.