Skip to content

Commit e644575

Browse files
Fix Automate PR Creation in Release Workflow (#1159)
* Updated Release Workflow * Updated Release Workflow * Updated Release Workflow * Updated Release Workflow
1 parent b058585 commit e644575

File tree

1 file changed

+27
-12
lines changed

1 file changed

+27
-12
lines changed

.github/workflows/release.yml

+27-12
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,6 @@ jobs:
2424
go-version-file: auth0-cli/go.mod
2525
check-latest: true
2626

27-
- name: Import GPG key
28-
id: import_gpg
29-
uses: crazy-max/ghaction-import-gpg@cb9bde2e2525e640591a934b1fd28eef1dcaf5e5 # ping 6.2.0
30-
with:
31-
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
32-
passphrase: ${{ secrets.GPG_PASSPHRASE }}
33-
git_user_signingkey: true
34-
git_commit_gpgsign: true
35-
git_tag_gpgsign: true
36-
git_committer_email: [email protected]
37-
git_committer_name: auth0
38-
3927
- name: Run GoReleaser
4028
uses: goreleaser/goreleaser-action@90a3faa9d0182683851fbfa97ca1a2cb983bfca3 # [email protected]
4129
with:
@@ -54,6 +42,19 @@ jobs:
5442
token: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
5543
path: homebrew-auth0-cli
5644

45+
- name: Import GPG key for Homebrew Tap
46+
id: import_gpg
47+
uses: crazy-max/ghaction-import-gpg@cb9bde2e2525e640591a934b1fd28eef1dcaf5e5 # ping 6.2.0
48+
with:
49+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
50+
passphrase: ${{ secrets.GPG_PASSPHRASE }}
51+
git_user_signingkey: true
52+
git_commit_gpgsign: true
53+
git_tag_gpgsign: true
54+
git_committer_email: [email protected]
55+
git_committer_name: auth0
56+
workdir: 'homebrew-auth0-cli'
57+
5758
- name: Copy Brew Formula
5859
run: |
5960
cp auth0-cli/dist/homebrew/*.rb homebrew-auth0-cli/
@@ -81,6 +82,20 @@ jobs:
8182
- name: Copy Scoop Manifest
8283
run: |
8384
cp auth0-cli/dist/scoop/*.json scoop-auth0-cli/
85+
86+
- name: Import GPG key for Scoop
87+
id: import_gpg
88+
uses: crazy-max/ghaction-import-gpg@cb9bde2e2525e640591a934b1fd28eef1dcaf5e5 # ping 6.2.0
89+
with:
90+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
91+
passphrase: ${{ secrets.GPG_PASSPHRASE }}
92+
git_user_signingkey: true
93+
git_commit_gpgsign: true
94+
git_tag_gpgsign: true
95+
git_committer_email: [email protected]
96+
git_committer_name: auth0
97+
workdir: 'scoop-auth0-cli'
98+
8499
- name: Create Scoop Pull Request
85100
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # [email protected]
86101
with:

0 commit comments

Comments
 (0)