Print when token generated successfully

This commit is contained in:
Thibault Derousseaux 2020-04-11 15:27:00 +02:00
parent 0470095157
commit 5ab5087310
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "github-app-token",
"version": "1.0.0",
"version": "1.0.1",
"license": "MIT",
"files": [
"action.yml",

View File

@ -1,4 +1,4 @@
import { getInput, setFailed, setOutput, setSecret } from "@actions/core";
import { getInput, info, setFailed, setOutput, setSecret } from "@actions/core";
import { context, GitHub } from "@actions/github";
import { App } from "@octokit/app";
import isBase64 from "is-base64";
@ -21,6 +21,7 @@ const run = async () => {
});
setSecret(token);
setOutput("token", token);
info("Token generated successfully!");
} catch (error) {
if (error instanceof Error) {
setFailed(error.message);