Skip to content

Commit 2c28027

Browse files
committed
fix(ci): update sed to replace version in both URL path and filename
1 parent 2f7cf9b commit 2c28027

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/homebrew.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ jobs:
6262
VERSION=${{ steps.get_version.outputs.version }}
6363
ARM_SHA256=${{ steps.arm.outputs.arm_sha256 }}
6464
INTEL_SHA256=${{ steps.intel.outputs.intel_sha256 }}
65-
sed -i "s|stats_provider-[0-9.]\+-aarch64-apple-darwin.tar.gz|stats_provider-${VERSION}-aarch64-apple-darwin.tar.gz|g" $FORMULA
66-
sed -i "s|stats_provider-[0-9.]\+-x86_64-apple-darwin.tar.gz|stats_provider-${VERSION}-x86_64-apple-darwin.tar.gz|g" $FORMULA
65+
sed -i "s|releases/download/[^/]*/stats_provider-[^-]*-aarch64-apple-darwin|releases/download/${VERSION}/stats_provider-${VERSION}-aarch64-apple-darwin|g" $FORMULA
66+
sed -i "s|releases/download/[^/]*/stats_provider-[^-]*-x86_64-apple-darwin|releases/download/${VERSION}/stats_provider-${VERSION}-x86_64-apple-darwin|g" $FORMULA
6767
sed -i "/aarch64-apple-darwin.tar.gz/,/sha256/ s|sha256 \".*\"|sha256 \"${ARM_SHA256}\"|" $FORMULA
6868
sed -i "/x86_64-apple-darwin.tar.gz/,/sha256/ s|sha256 \".*\"|sha256 \"${INTEL_SHA256}\"|" $FORMULA
6969

0 commit comments

Comments
 (0)