Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ runs:
steps:
- name: Setup Python
id: setup-python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python-version }}

Expand All @@ -40,12 +40,12 @@ runs:
# https://github.com/snok/install-poetry/blob/main/README.md#caching-the-poetry-installation
- name: Locate user site
id: site-user-base
run: echo "::set-output name=dir::$(python -m site --user-base)"
run: echo "dir=$(python -m site --user-base)" >> "$GITHUB_OUTPUT"
shell: bash

- name: Restore/cache poetry installation
id: poetry-install-cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.site-user-base.outputs.dir }}
key: poetry-install-cache-${{ steps.setup-python.outputs.python-version }}-${{ inputs.poetry-version }}
Expand All @@ -59,12 +59,12 @@ runs:
# Again, we're following snok/install-poetry's README.
- name: Locate poetry venv
id: poetry-venvs
run: echo "::set-output name=dir::$(python -m poetry config virtualenvs.path)"
run: echo "dir=$(python -m poetry config virtualenvs.path)" >> "$GITHUB_OUTPUT"
shell: bash

- name: Restore/cache poetry venv
id: poetry-venv-cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.poetry-venvs.outputs.dir }}
key: poetry-venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}-${{ inputs.extras }}
Expand Down