Skip to content

Commit

Permalink
fix: Error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese committed Dec 14, 2023
1 parent 5354704 commit 819f174
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,21 @@ async function run() {
console.log("Tag was found");
exists = "true";
}
else
{
core.setFailed("Unknown status was returned: " + getRefResponse.status);
process.exit();
}
} catch (error) {
console.error(error);
console.log("Tag was not found");
}

core.setOutput("exists", exists);

} catch (error) {
core.setFailed(error.message);
console.error(error);
}
}

Expand Down

0 comments on commit 819f174

Please sign in to comment.