Skip to content

Commit

Permalink
Merge pull request #43 from beatlabs/goreleaser_fix
Browse files Browse the repository at this point in the history
goreleaser deprecated brew section updated
  • Loading branch information
ormanli authored Feb 20, 2021
2 parents 04935b9 + c8355a7 commit e7a2af8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: gomodctl release
on:
on:
push:
tags:
- "*"
Expand All @@ -12,18 +12,18 @@ jobs:

steps:
- name: Check out code into the Go module directory
uses: actions/checkout@master
uses: actions/checkout@v2

- name: Unshallow
run: git fetch --prune --unshallow

- name: Set up Go (1.15)
uses: actions/setup-go@v1
uses: actions/setup-go@v2
with:
go-version: 1.15

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@master
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ release:
draft: true
brews:
-
github:
tap:
owner: beatlabs
name: gomodctl
description: "search,check and update go modules"
Expand Down
2 changes: 2 additions & 0 deletions cmd/gomodctl/gomodctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
)

var ro RootOptions
var version string

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

// RootOptions is exported.
Expand Down

0 comments on commit e7a2af8

Please sign in to comment.