Skip to content

Commit 4f04fa9

Browse files
committed
Use set failed
1 parent 2f49264 commit 4f04fa9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/pre/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pre/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import * as tc from "@actions/tool-cache";
3535
};
3636

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

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

0 commit comments

Comments
 (0)