Skip to content

Commit e7a2af8

Browse files
authored
Merge pull request #43 from beatlabs/goreleaser_fix
goreleaser deprecated brew section updated
2 parents 04935b9 + c8355a7 commit e7a2af8

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: gomodctl release
2-
on:
2+
on:
33
push:
44
tags:
55
- "*"
@@ -12,18 +12,18 @@ jobs:
1212

1313
steps:
1414
- name: Check out code into the Go module directory
15-
uses: actions/checkout@master
15+
uses: actions/checkout@v2
1616

1717
- name: Unshallow
1818
run: git fetch --prune --unshallow
1919

2020
- name: Set up Go (1.15)
21-
uses: actions/setup-go@v1
21+
uses: actions/setup-go@v2
2222
with:
2323
go-version: 1.15
2424

2525
- name: Run GoReleaser
26-
uses: goreleaser/goreleaser-action@master
26+
uses: goreleaser/goreleaser-action@v2
2727
with:
2828
version: latest
2929
args: release --rm-dist

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ release:
5353
draft: true
5454
brews:
5555
-
56-
github:
56+
tap:
5757
owner: beatlabs
5858
name: gomodctl
5959
description: "search,check and update go modules"

cmd/gomodctl/gomodctl.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import (
2424
)
2525

2626
var ro RootOptions
27+
var version string
2728

2829
// rootCmd represents the base command when called without any subcommands
2930
var rootCmd = &cobra.Command{
@@ -36,6 +37,7 @@ Example:
3637
gomodctl search mongo
3738
3839
This command will search in all public Go packages and return matching results for term "mongo".`,
40+
Version: version,
3941
}
4042

4143
// RootOptions is exported.

0 commit comments

Comments
 (0)