Skip to content

Commit

Permalink
refactor: #17
Browse files Browse the repository at this point in the history
  • Loading branch information
raunakgurud09 committed Jan 31, 2024
1 parent 0abf5a9 commit e4a8029
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59383,6 +59383,7 @@ async function run() {
const hashnode_key = (0, core_1.getInput)("hashnode_key");
(0, core_1.setSecret)(hashnode_key);
const response = await (0, controller_1.getUser)(hashnode_key);
console.log(response);
if (response.error) {
(0, core_1.setOutput)("result_json", response.data);
const summary = `Invalid hashnode_key ${hashnode_key}`;
Expand Down
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ export async function run() {

const response = await getUser(hashnode_key);

console.log(response);

if (response.error) {
setOutput("result_json", response.data);
const summary = `Invalid hashnode_key ${hashnode_key}`;
setOutput("result_summary", summary);
setOutput("result_info", response.error);

process.exit(1);
}

Expand Down

0 comments on commit e4a8029

Please sign in to comment.