Skip to content

Commit

Permalink
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions dist/main.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -1602,7 +1602,7 @@ var require_oidc_utils = __commonJS({

Error Code : ${error.statusCode}

Error Message: ${error.result.message}`);
Error Message: ${error.message}`);
});
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
if (!id_token) {
Expand Down Expand Up @@ -2793,7 +2793,7 @@ var require_dist_node5 = __commonJS({
module2.exports = __toCommonJS2(dist_src_exports);
var import_endpoint = require_dist_node2();
var import_universal_user_agent = require_dist_node();
var VERSION = "8.1.1";
var VERSION = "8.1.2";
var import_is_plain_object = require_is_plain_object();
var import_request_error = require_dist_node4();
function getBufferResponse(response) {
Expand Down Expand Up @@ -14984,7 +14984,7 @@ var require_dist_node12 = __commonJS({
return sendRequestWithRetries(state, request2, options, createdAt, retries);
}
}
var VERSION = "6.0.0";
var VERSION = "6.0.1";
var import_auth_oauth_user2 = require_dist_node9();
function createAppAuth2(options) {
if (!options.appId) {
Expand Down
8 changes: 5 additions & 3 deletions dist/post.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -1602,7 +1602,7 @@ var require_oidc_utils = __commonJS({
Error Code : ${error.statusCode}
Error Message: ${error.result.message}`);
Error Message: ${error.message}`);
});
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
if (!id_token) {
Expand Down Expand Up @@ -2793,7 +2793,7 @@ var require_dist_node5 = __commonJS({
module2.exports = __toCommonJS2(dist_src_exports);
var import_endpoint = require_dist_node2();
var import_universal_user_agent = require_dist_node();
var VERSION = "8.1.1";
var VERSION = "8.1.2";
var import_is_plain_object = require_is_plain_object();
var import_request_error = require_dist_node4();
function getBufferResponse(response) {
Expand Down Expand Up @@ -2956,8 +2956,10 @@ var import_core = __toESM(require_core(), 1);
// lib/post.js
async function post(core2, request2) {
const token = core2.getState("token");
if (!token)
if (!token) {
core2.info("Token is not set");
return;
}
await request2("DELETE /installation/token", {
headers: {
authorization: `token ${token}`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "create-github-app-token",
"private": true,
"type": "module",
"version": "1.2.1",
"version": "1.2.2",
"description": "GitHub Action for creating a GitHub App Installation Access Token",
"scripts": {
"build": "esbuild main.js post.js --bundle --outdir=dist --out-extension:.js=.cjs --platform=node --target=node16.16",
Expand Down

0 comments on commit 5804f04

Please sign in to comment.