File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : gomodctl release
2
- on :
2
+ on :
3
3
push :
4
4
tags :
5
5
- " *"
@@ -12,18 +12,18 @@ jobs:
12
12
13
13
steps :
14
14
- name : Check out code into the Go module directory
15
- uses : actions/checkout@master
15
+ uses : actions/checkout@v2
16
16
17
17
- name : Unshallow
18
18
run : git fetch --prune --unshallow
19
19
20
20
- name : Set up Go (1.15)
21
- uses : actions/setup-go@v1
21
+ uses : actions/setup-go@v2
22
22
with :
23
23
go-version : 1.15
24
24
25
25
- name : Run GoReleaser
26
- uses : goreleaser/goreleaser-action@master
26
+ uses : goreleaser/goreleaser-action@v2
27
27
with :
28
28
version : latest
29
29
args : release --rm-dist
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ release:
53
53
draft : true
54
54
brews :
55
55
-
56
- github :
56
+ tap :
57
57
owner : beatlabs
58
58
name : gomodctl
59
59
description : " search,check and update go modules"
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import (
24
24
)
25
25
26
26
var ro RootOptions
27
+ var version string
27
28
28
29
// rootCmd represents the base command when called without any subcommands
29
30
var rootCmd = & cobra.Command {
@@ -36,6 +37,7 @@ Example:
36
37
gomodctl search mongo
37
38
38
39
This command will search in all public Go packages and return matching results for term "mongo".` ,
40
+ Version : version ,
39
41
}
40
42
41
43
// RootOptions is exported.
You can’t perform that action at this time.
0 commit comments