Skip to content

Commit ffc6cd9

Browse files
authored
Update homebrew tap step to distinguish hashes for zip and tar.gz (#2525)
## Changes Update homebrew tap step to distinguish hashes for zip and tar.gz ## Why Homebrew tap release PRs are currently failing because they incorrectly use checksum hashes for tar.gz archives instead of zip
1 parent 3985c43 commit ffc6cd9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
artifacts = artifacts.filter(a => a.type == "Archive")
108108
artifacts = new Map(
109109
artifacts.map(a => [
110-
a.goos + "_" + a.goarch,
110+
a.goos + "_" + a.goarch + "_" + a.extra.Format,
111111
a.extra.Checksum.replace("sha256:", "")
112112
])
113113
)
@@ -119,10 +119,10 @@ jobs:
119119
ref: 'main',
120120
inputs: {
121121
version: "${{ env.VERSION }}",
122-
darwin_amd64_sha: artifacts.get('darwin_amd64'),
123-
darwin_arm64_sha: artifacts.get('darwin_arm64'),
124-
linux_amd64_sha: artifacts.get('linux_amd64'),
125-
linux_arm64_sha: artifacts.get('linux_arm64')
122+
darwin_amd64_sha: artifacts.get('darwin_amd64_zip'),
123+
darwin_arm64_sha: artifacts.get('darwin_arm64_zip'),
124+
linux_amd64_sha: artifacts.get('linux_amd64_zip'),
125+
linux_arm64_sha: artifacts.get('linux_arm64_zip')
126126
}
127127
});
128128

0 commit comments

Comments
 (0)