Skip to content

Commit

Permalink
Use set failed
Browse files Browse the repository at this point in the history
  • Loading branch information
varunsh-coder committed Dec 6, 2021
1 parent 2f49264 commit 4f04fa9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/pre/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/pre/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import * as tc from "@actions/tool-cache";
};

if (confg.egress_policy !== "audit" && confg.egress_policy !== "block") {
core.error("egress-policy must be either audit or block");
core.setFailed("egress-policy must be either audit or block");
}

if (confg.egress_policy === "block" && confg.allowed_endpoints === "") {
Expand Down

0 comments on commit 4f04fa9

Please sign in to comment.