Skip to content

Commit 8b67679

Browse files
committed
fix: portable sed for macOS runners and sync Cargo.lock on release
- Use sed -i'' -e for BSD/GNU compatibility in build job (macOS runners) - Run cargo update --workspace after version bump in update-homebrew job - Include Cargo.lock in post-release commit
1 parent 240ef69 commit 8b67679

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Set version from tag
4545
run: |
4646
VERSION="${GITHUB_REF_NAME#v}"
47-
sed -i "s/^version = \".*\"/version = \"${VERSION}\"/" Cargo.toml
47+
sed -i'' -e "s/^version = \".*\"/version = \"${VERSION}\"/" Cargo.toml
4848
4949
- name: Build
5050
run: |
@@ -98,12 +98,13 @@ jobs:
9898
run: |
9999
VERSION="${GITHUB_REF_NAME#v}"
100100
sed -i "s/^version = \".*\"/version = \"${VERSION}\"/" Cargo.toml
101+
cargo update --workspace
101102
102103
- name: Commit and push
103104
run: |
104105
git config user.name "github-actions[bot]"
105106
git config user.email "github-actions[bot]@users.noreply.github.com"
106-
git add Formula/polymarket.rb Cargo.toml
107+
git add Formula/polymarket.rb Cargo.toml Cargo.lock
107108
git diff --cached --quiet && echo "Nothing to commit" || {
108109
git commit -m "release: update formula and version to ${{ github.ref_name }}"
109110
git push

0 commit comments

Comments
 (0)