From 9c53f94613e288b5402a05d92db04736a706108f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 26 Jan 2025 18:37:02 +0000 Subject: [PATCH] fix version --- .github/workflows/github_action.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/github_action.yml b/.github/workflows/github_action.yml index 11dbb965..79c46cee 100644 --- a/.github/workflows/github_action.yml +++ b/.github/workflows/github_action.yml @@ -22,16 +22,25 @@ jobs: with: fetch-depth: 0 + - name: Get current version + id: current_version + run: | + echo "VERSION=$(grep '^version = ' pyproject.toml | cut -d'"' -f2)" >> $GITHUB_OUTPUT + - name: Generate Changelog id: changelog uses: TriPSs/conventional-changelog-action@v3 with: github-token: ${{ secrets.GITHUB_TOKEN }} + version-file: './pyproject.toml' version-path: 'tool.poetry.version' + fallback-version: ${{ steps.current_version.outputs.VERSION }} git-message: 'chore(release): {version}' preset: 'angular' tag-prefix: 'v' release-count: 0 + skip-version-file: false + skip-commit: false - name: Set up Python uses: actions/setup-python@v5