From 98fbb827652c2a8bf251bc1c43dd2f60abcd9348 Mon Sep 17 00:00:00 2001 From: Michael Vogelsong <4020875+mjvogelsong@users.noreply.github.com> Date: Sat, 9 Mar 2024 12:58:18 -0800 Subject: [PATCH] Use inputs --- .github/workflows/python-make-target.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-make-target.yaml b/.github/workflows/python-make-target.yaml index a44f950..0d058c1 100644 --- a/.github/workflows/python-make-target.yaml +++ b/.github/workflows/python-make-target.yaml @@ -34,22 +34,22 @@ jobs: with: path: ~/.local # Invalidate the cache when this workflow file changes. - key: poetry-${{ runner.os }}-${{ env.POETRY_VERSION }}-${{ env.PYTHON_VERSION }} + key: poetry-${{ runner.os }}-${{ github.event.inputs.poetry-version }}-${{ github.event.inputs.python-version }} - name: install python uses: actions/setup-python@v5 with: - python-version: ${{ env.PYTHON_VERSION }} + python-version: ${{ github.event.inputs.python-version }} - name: install poetry uses: snok/install-poetry@v1 with: - version: ${{ env.POETRY_VERSION }} + version: ${{ github.event.inputs.poetry-version }} - name: cache dependencies uses: actions/cache@v4 with: path: .venv - key: py-${{ github.event.inputs.target }}-${{ runner.os }}-${{ env.PYTHON_VERSION }}-${{ hashFiles('**/poetry.lock') }} + key: py-${{ github.event.inputs.target }}-${{ runner.os }}-${{ github.event.inputs.python-version }}-${{ hashFiles('**/poetry.lock') }} restore-keys: | - py-${{ github.event.inputs.target }}-${{ runner.os }}-${{ env.PYTHON_VERSION }} + py-${{ github.event.inputs.target }}-${{ runner.os }}-${{ github.event.inputs.python-version }} - name: ${{ github.event.inputs.target }} run: | make ${{ github.event.inputs.target }}