We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c228761 commit d53d356Copy full SHA for d53d356
.github/workflows/upload_crates.yml
@@ -17,7 +17,7 @@ jobs:
17
18
- name: Set version
19
run: |
20
- echo "current ref ${{ github.ref }}""
+ echo "current ref ${{ github.ref }}"
21
cargo run -p edit_version -- ${{ github.ref }}
22
- name: Publish
23
tools/edit_version/src/main.rs
@@ -8,7 +8,11 @@ const CARGOS: &[&str] = &[
8
];
9
10
fn main() {
11
- let version = std::env::args().nth(1).expect("Please provide a version");
+ let mut version = std::env::args().nth(1).expect("Please provide a version");
12
+ if version.starts_with("refs/tags/") {
13
+ version = version.replace("refs/tags/", "");
14
+ }
15
+
16
let current_dir = std::env::current_dir().unwrap();
// 向上查找到有crates的目录
let workspace_dir = current_dir
0 commit comments