Skip to content

Commit

Permalink
invert logic
Browse files Browse the repository at this point in the history
  • Loading branch information
atchertchian committed Jan 17, 2025
1 parent f5d10d5 commit 54c5533
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/actions/dispatch-resume-workflow/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29365,11 +29365,11 @@ function run() {
} catch (e) {
core.warning(`Failed to get workflow status: ${e.message}`);
}
if (conclusion !== workflow_handler_1.WorkflowRunConclusion.SUCCESS) {
if (conclusion === workflow_handler_1.WorkflowRunConclusion.SUCCESS) {
core.info(`Workflow run is already successful`);
} else {
const status = yield workflowHandler.rerunFailedJobs();
core.info(`Response status ${status}`);
} else {
core.info(`Workflow run is already successful`);
}
} else {
// Trigger workflow run
Expand Down

0 comments on commit 54c5533

Please sign in to comment.