build: Set up Python 3.12 and Poetry caching in docker workflow. (#3296)

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-08-12 20:52:52 -03:00 committed by GitHub
commit d8af6652e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,9 +36,16 @@ jobs:
get-version:
name: Get Version
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get-version-input.outputs.version || steps.get-version-base.outputs.version || steps.get-version-main.outputs.version }}
steps:
- name: Set up Python 3.12 + Poetry ${{ env.POETRY_VERSION }}
uses: "./.github/actions/poetry_caching"
with:
python-version: "3.12"
poetry-version: ${{ env.POETRY_VERSION }}
cache-key: ${{ runner.os }}-poetry-${{ env.POETRY_VERSION }}-${{ hashFiles('**/poetry.lock') }}
- name: Get Version from Input
if : ${{ inputs.version != '' }}
id: get-version-input