0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-11-22 05:58:21 -05: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 }} 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