refactor: Fix version extraction in GitHub Actions workflow (#3501)

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-08-22 09:20:45 -03:00 • committed by GitHub
commit b814c30716
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,13 +57,13 @@ jobs:
if : ${{ inputs.version == '' && inputs.release_type == 'base' }}
id: get-version-base
run: |
version=$(poetry version --short)
version=$(cd src/backend/base && poetry version --short)
echo version=$version >> $GITHUB_OUTPUT
- name: Get Version Base
if : ${{ inputs.version == '' && inputs.release_type == 'main' }}
id: get-version-main
run: |
version=$(cd src/backend/base && poetry version --short)
version=$(poetry version --short)
echo version=$version >> $GITHUB_OUTPUT
setup:
runs-on: ubuntu-latest