Skip to content

Commit 5536b69

Browse files
committed
chore: 修复Release工作流无法修改版本号
1 parent 15b5e12 commit 5536b69

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@ jobs:
5252
sudo apt-get install -y libx11-dev libxcursor-dev libxinerama-dev libxi-dev libgl1-mesa-dev libfontconfig1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libwayland-dev libxkbcommon-dev
5353
5454
- name: Set version
55+
shell: bash
5556
run: |
5657
VERSION="${{ github.event.inputs.version }}"
57-
sed -i "s/^version = \"0.0.0-dev\"/version = \"$VERSION\"/" Cargo.toml
58+
sed -i "" "s/^version = \"0.0.0-dev\"/version = \"$VERSION\"/" Cargo.toml
5859
5960
- name: Build Release
6061
run: cargo build --release

0 commit comments

Comments
 (0)