Skip to content

Commit

Permalink
Use inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
mjvogelsong committed Mar 9, 2024
1 parent 6106f34 commit 98fbb82
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/python-make-target.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 98fbb82

Please sign in to comment.