We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0ba4a4 commit 41b1bd6Copy full SHA for 41b1bd6
cmd/semantic-release/main.go
@@ -6,7 +6,9 @@ import (
6
"io/ioutil"
7
"log"
8
"os"
9
+ "os/signal"
10
"strings"
11
+ "syscall"
12
13
"github.com/Masterminds/semver/v3"
14
"github.com/go-semantic-release/semantic-release/v2/pkg/config"
@@ -75,6 +77,13 @@ func cliHandler(cmd *cobra.Command, args []string) {
75
77
pluginManager.Stop()
76
78
}
79
80
+ c := make(chan os.Signal)
81
+ signal.Notify(c, os.Interrupt, syscall.SIGTERM)
82
+ go func() {
83
+ <-c
84
+ exitIfError(errors.New("terminating..."))
85
+ }()
86
+
87
ci, err := pluginManager.GetCICondition()
88
exitIfError(err)
89
logger.Printf("ci-condition plugin: %s@%s\n", ci.Name(), ci.Version())
0 commit comments