From 0b196ed3f2b40d19d401abe293a9fda972169292 Mon Sep 17 00:00:00 2001 From: neon_arch Date: Mon, 15 May 2023 09:34:39 +0000 Subject: [PATCH] ci: fix automatic releases ci using conventional commits --- .github/workflows/releases.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index e46c5aa..8e1e46b 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -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