Skip to content

Commit

Permalink
Upgrade Goreleaser v2 (#224)
Browse files Browse the repository at this point in the history
* upgrade goreleaser v2
* missing error check

---------

Co-authored-by: Pablo RUTH <[email protected]>
  • Loading branch information
pablo-ruth and Pablo RUTH authored Jun 17, 2024
1 parent 9737731 commit 5080693
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --snapshot --skip-sign --clean
args: release --snapshot --skip=sign --clean
env:
GORELEASER_CURRENT_TAG: ${{ github.run_id }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --snapshot --skip-sign --clean
args: release --snapshot --skip=sign --clean

- uses: actions/upload-artifact@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ jobs:
git config --local user.name "GitHub Action"
git add .
git commit -m "Add new rpm files"
git push
git push
4 changes: 3 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: 2

before:
hooks:
- go mod download
Expand Down Expand Up @@ -33,7 +35,7 @@ signs:
- "--detach-sign"
- "${artifact}"
changelog:
skip: true
disable: true
nfpms:
- maintainer: Pablo RUTH <[email protected]>
homepage: https://github.com/signmykeyio/signmykey
Expand Down
5 changes: 4 additions & 1 deletion cmd/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ var hashCmd = &cobra.Command{

fmt.Printf("\nDo you want to use One Time Codes e.g. Google authenticator? (Y/N) ")
var useOtp string
fmt.Scanln(&useOtp)
_, err = fmt.Scanln(&useOtp)
if err != nil {
return err
}

if useOtp == "Y" || useOtp == "y" {
seed := util.GenerateSeed()
Expand Down

0 comments on commit 5080693

Please sign in to comment.