We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c86f014 commit 15c40d1Copy full SHA for 15c40d1
.github/workflows/linutil.yml
@@ -39,6 +39,18 @@ jobs:
39
with:
40
targets: x86_64-unknown-linux-musl
41
42
+ - name: Update package version
43
+ run: |
44
+ prev_version=$(grep 'version' Cargo.toml | head -n +1 | cut -d'"' -f2)
45
+ if ! echo " ${prev_version} " | grep -q -E ' [0-9]{2}\.[0-9]{2}\.[0-9]{2} '; then
46
+ echo "Could not accurately determine the previous version"
47
+ exit 1
48
+ fi
49
+ new_version=$(date +"%y.%m.%d")
50
+ # The TUI depends upon linutil_core, which has its version updated
51
+ sed -i "s/version = \"${prev_version}\"/version = \"${new_version}\"/g" Cargo.toml tui/Cargo.toml
52
+ shell: bash
53
+
54
- name: Install cross-rs for cross-compilation
55
run: cargo install cross
56
0 commit comments