diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ec53f775..23d5217c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,6 +29,13 @@ jobs: uses: abatilo/actions-poetry@v2 with: poetry-version: 1.4.2 + - name: obtain version number + run: + git config user.name github-actions + git config user.email github-actions@github.com + poetry version ${{ github.event.inputs.release_type }} + PROJECT_VERSION=$(poetry version --short) + echo "PROJECT_VERSION=$PROJECT_VERSION" >> $GITHUB_ENV - name: Create Release uses: actions/create-release@latest env: