neon_arch
commited on
Commit
•
0b196ed
1
Parent(s):
2d218d6
ci: fix automatic releases ci using conventional commits
Browse files
.github/workflows/releases.yml
CHANGED
@@ -31,11 +31,15 @@ jobs:
|
|
31 |
run: git fetch --all && git checkout --track origin/release-from-${{ github.sha }}
|
32 |
|
33 |
# update app config with version
|
34 |
-
- name:
|
35 |
-
id:
|
36 |
-
uses:
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
|
|
39 |
|
40 |
# create release info and push it upstream
|
41 |
- name: conventional Changelog Action
|
|
|
31 |
run: git fetch --all && git checkout --track origin/release-from-${{ github.sha }}
|
32 |
|
33 |
# update app config with version
|
34 |
+
- name: Get current rust app version from its Cargo.toml.
|
35 |
+
id: foo
|
36 |
+
uses: dante-signal31/rust-app-version@v1.2.0
|
37 |
+
with:
|
38 |
+
cargo_toml_folder: rust_app_folder/
|
39 |
+
|
40 |
+
- name: Use the version to update the Cargo.toml version.
|
41 |
+
shell: bash
|
42 |
+
run: sed -i "3s/version = \"[0-9]*.[0-9]*.[0-9]*\"/version = \"${{ steps.foo.outputs.app_version }}\"/g" Cargo.toml
|
43 |
|
44 |
# create release info and push it upstream
|
45 |
- name: conventional Changelog Action
|