neon_arch commited on
Commit
0b196ed
1 Parent(s): 2d218d6

ci: fix automatic releases ci using conventional commits

Browse files
Files changed (1) hide show
  1. .github/workflows/releases.yml +9 -5
.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: get-npm-version
35
- id: package-version
36
- uses: martinbeentjes/npm-get-version-action@master
37
- - name: update app config
38
- run: sed -i 's/0.0.0/${{ steps.package-version.outputs.current-version}}/g' config/app.json
 
 
 
 
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