-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stop-on-signals and auto-cancellation
When workflows are cancelled, any started builds are left running. This is not usually desired, for example if using workflow concurrency[^1] to cancel redundant builds. In cases like this, we'd want to also stop any triggered builds. This commit adds a `stop-on-signals` input with a default value of `SIGINT` and updates the action to listen for the listed signal(s) and stop any already-started build in response. This accomplishes the desired behavior in the common case. [^1]: https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-concurrency-to-cancel-any-in-progress-job-or-run
- Loading branch information
Showing
4 changed files
with
2,389 additions
and
35,218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.