From 04b96abbdf8f293ad3ba08dfcf135e54db00343f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=83=E5=87=9B?= Date: Wed, 20 Oct 2021 16:34:46 +0800 Subject: [PATCH] fix: setFailed --- CHANGELOG.md | 4 ++++ dist/index.js | 2 +- src/main.js | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b164eed..9bbc171 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ # Changelog +## v1.2.2 + +- 🐞 fix: setFailed. + ## v1.2.1 `2021.10.18` diff --git a/dist/index.js b/dist/index.js index b72d9ec..d1d7381 100644 --- a/dist/index.js +++ b/dist/index.js @@ -7573,7 +7573,7 @@ async function run() { // If required, we fail if it does not match the required level if (require && !result) { - core.setFailed(`[Action Check] The user: ${username} required level is not sufficient.`); + core.info(`[Action Check] The user: ${username} required level is not sufficient.`); } core.info(`[Action Check] The user permission check is ${result}.`); diff --git a/src/main.js b/src/main.js index f483816..d594443 100644 --- a/src/main.js +++ b/src/main.js @@ -49,7 +49,7 @@ async function run() { // If required, we fail if it does not match the required level if (require && !result) { - core.setFailed(`[Action Check] The user: ${username} required level is not sufficient.`); + core.info(`[Action Check] The user: ${username} required level is not sufficient.`); } core.info(`[Action Check] The user permission check is ${result}.`);