Skip to content

Run a post-entrypoint script on build cancellation #25987

Answered by Yanjingzhu
obrassard asked this question in Actions
Discussion options

You must be logged in to vote
obrassard:

More specifically, will post-entrypoint run even if a build is cancelled?

Yes, post-entrypoint will always run in default even if a build is cancelled.

The post: action will only run if the conditions in post-if are met. If post-if is not set, then the condition defaults to always() .
You could use cancelled() function in post-if, then the post action will only run when the build is canceled.

Replies: 3 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants