1
0
Fork 0
mirror of synced 2026-06-05 15:48:19 +00:00

Use set failed

This commit is contained in:
Varun Sharma 2021-12-06 12:38:45 -08:00
commit 4f04fa9d08
3 changed files with 3 additions and 3 deletions

2
dist/pre/index.js vendored
View file

@ -6301,7 +6301,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
egress_policy: core.getInput("egress-policy"),
};
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 === "") {
core.warning("egress-policy is set to block (default) and allowed-endpoints is empty. No outbound traffic will be allowed for job steps.");

File diff suppressed because one or more lines are too long

View file

@ -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 === "") {