From 923b7abdad0994d23b660402c704eba0976c057e Mon Sep 17 00:00:00 2001 From: skykooler Date: Wed, 8 Jan 2025 05:30:07 -0500 Subject: [PATCH] Set version in changelog extraction step --- .github/workflows/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d82d4f6..5954f55 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,6 +11,15 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 + + - name: Set version for changelog extraction + shell: bash + run: | + # Read the version from src-tauri/tauri.conf.json + VERSION=$(jq -r '.version' src-tauri/tauri.conf.json) + # Set the version in the environment variable + echo "VERSION=$VERSION" >> $GITHUB_ENV + - name: Extract release notes from Changelog.md id: changelog uses: sean0x42/markdown-extract@v2.1.0