Skip to content

Commit f72b5f6

Browse files
Fix GoReleaser Pipeline to Create Pull Requests for Homebrew and Scoop Repositories (#1154)
* Updated goreleaser to latest version and Updated .goreleaser.yml to Open Pull Request to Homebrew and scoop Repo * Updated goreleaser to latest version and Updated .goreleaser.yml to Open Pull Request to Homebrew and scoop Repo
1 parent 45825c6 commit f72b5f6

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
check-latest: true
2626

2727
- name: Run GoReleaser
28-
uses: goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757 # pin@4.3.0
28+
uses: goreleaser/goreleaser-action@90a3faa9d0182683851fbfa97ca1a2cb983bfca3 # pin@6.2.1
2929
with:
30-
version: '1.26.2'
31-
args: release --rm-dist
30+
version: "2.7.0"
31+
args: release --clean
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
3434
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}

.goreleaser.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Documentation at http://goreleaser.com
2+
version: 2
23
builds:
34
- main: ./cmd/auth0
45
env:
@@ -23,21 +24,27 @@ archives:
2324
- none*
2425
format_overrides:
2526
- goos: windows
26-
format: zip
27+
formats: zip
2728
checksum:
2829
name_template: "checksums.txt"
30+
algorithm: sha256
2931
snapshot:
30-
name_template: "{{ .Tag }}-SNAPSHOT-{{.ShortCommit}}"
32+
version_template: "{{ .Tag }}-SNAPSHOT-{{.ShortCommit}}"
3133
changelog:
32-
skip: true
34+
disable: true
3335
brews:
3436
- name: auth0
3537
repository:
3638
owner: auth0
3739
name: homebrew-auth0-cli
40+
branch: main
41+
pull_request:
42+
enabled: true
43+
draft: false
3844
commit_author:
3945
name: auth0
4046
email: support@auth0.com
47+
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
4148
homepage: https://auth0.github.io/auth0-cli
4249
description: Build, manage and test your Auth0 integrations from the command line
4350
license: MIT
@@ -54,6 +61,10 @@ scoops:
5461
repository:
5562
owner: auth0
5663
name: scoop-auth0-cli
64+
branch: main
65+
pull_request:
66+
enabled: true
67+
draft: false
5768
commit_author:
5869
name: auth0
5970
email: support@auth0.com

0 commit comments

Comments
 (0)