diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e3f273a..f8ac544 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -35,10 +35,10 @@ jobs: # Update the version in Cargo.toml TAG_NAME="${{ github.event.release.tag_name }}" TAG_NAME="${TAG_NAME#v}" - if [[ "${{ runner.os }}" == "macos-latest" ]]; then - sed -i "" "s/^version = .*/version = \"$TAG_NAME\"/" Cargo.toml + if [[ "${{ runner.os }}" == "macOS" ]]; then + sed -i"" -e "s/^version = .*/version = \"$TAG_NAME\"/" Cargo.toml else - sed -i "s/^version = .*/version = \"$TAG_NAME\"/" Cargo.toml + sed -i -e "s/^version = .*/version = \"$TAG_NAME\"/" Cargo.toml fi - uses: taiki-e/upload-rust-binary-action@v1 with: