mirror of
https://github.com/neon-mmd/websurfx.git
synced 2024-11-21 21:48:21 -05:00
ci: fix automatic releases ci using conventional commits
This commit is contained in:
parent
2d218d6ebc
commit
0b196ed3f2
14
.github/workflows/releases.yml
vendored
14
.github/workflows/releases.yml
vendored
@ -31,11 +31,15 @@ jobs:
|
|||||||
run: git fetch --all && git checkout --track origin/release-from-${{ github.sha }}
|
run: git fetch --all && git checkout --track origin/release-from-${{ github.sha }}
|
||||||
|
|
||||||
# update app config with version
|
# update app config with version
|
||||||
- name: get-npm-version
|
- name: Get current rust app version from its Cargo.toml.
|
||||||
id: package-version
|
id: foo
|
||||||
uses: martinbeentjes/npm-get-version-action@master
|
uses: dante-signal31/rust-app-version@v1.2.0
|
||||||
- name: update app config
|
with:
|
||||||
run: sed -i 's/0.0.0/${{ steps.package-version.outputs.current-version}}/g' config/app.json
|
cargo_toml_folder: rust_app_folder/
|
||||||
|
|
||||||
|
- name: Use the version to update the Cargo.toml version.
|
||||||
|
shell: bash
|
||||||
|
run: sed -i "3s/version = \"[0-9]*.[0-9]*.[0-9]*\"/version = \"${{ steps.foo.outputs.app_version }}\"/g" Cargo.toml
|
||||||
|
|
||||||
# create release info and push it upstream
|
# create release info and push it upstream
|
||||||
- name: conventional Changelog Action
|
- name: conventional Changelog Action
|
||||||
|
Loading…
Reference in New Issue
Block a user