0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-10-18 06:22:53 -04:00

ci: fix automatic releases ci using conventional commits

This commit is contained in:
neon_arch 2023-05-15 09:34:39 +00:00 committed by GitHub
parent 2d218d6ebc
commit 0b196ed3f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,11 +31,15 @@ jobs:
run: git fetch --all && git checkout --track origin/release-from-${{ github.sha }}
# update app config with version
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
- name: update app config
run: sed -i 's/0.0.0/${{ steps.package-version.outputs.current-version}}/g' config/app.json
- name: Get current rust app version from its Cargo.toml.
id: foo
uses: dante-signal31/rust-app-version@v1.2.0
with:
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
- name: conventional Changelog Action