Skip to content

Commit

Permalink
Deal with Github Actions deprecation warnings (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson authored Oct 18, 2022
1 parent b4b0ae0 commit b59e913
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit b59e913

Please sign in to comment.