Skip to content

Exit on success #26885

Discussion options

You must be logged in to vote

@ivanovaleksandar ,

Is there a way to skip all other steps without using conditionals for every subsequent step.

We have no methods to skip the subsequent steps without using the if conditional.
The if conditional is the designed and only way that used to skip jobs or steps in the workflow.

In a job, by default only when a step is failure, the subsequent steps will be automatically skipped. Every step in the job will be implicitly added the if statement with the success status (if: ${{ success() }}) by default.
If you want to skip the subsequent steps when the previous step is success, you must use the explicit if conditional with other statuses to override the default status, or combin…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants