Skip to content

Commit

Permalink
return after core.setFailed in patch.js (mlflow#11793)
Browse files Browse the repository at this point in the history
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
  • Loading branch information
harupy committed Apr 23, 2024
1 parent 7f45f2b commit 8c29230
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/patch.js
Expand Up @@ -29,12 +29,14 @@ module.exports = async ({ context, github, core }) => {
core.setFailed(
"Both yes and no are selected. Please select only one in the `Should this PR be included in the next patch release?` section."
);
return;
}

if (!yes && !no) {
core.setFailed(
"Please fill in the `Should this PR be included in the next patch release?` section."
);
return;
}

if (no) {
Expand Down

0 comments on commit 8c29230

Please sign in to comment.