Skip to content

Commit

Permalink
fix: setFailed
Browse files Browse the repository at this point in the history
  • Loading branch information
xrkffgg committed Oct 20, 2021
1 parent 66ab453 commit 04b96ab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

# Changelog

## v1.2.2

- 🐞 fix: setFailed.

## v1.2.1

`2021.10.18`
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}.`);
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}.`);
Expand Down

0 comments on commit 04b96ab

Please sign in to comment.