Skip to content

Commit

Permalink
update versions (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
grizz authored Apr 1, 2023
1 parent 587d6f9 commit 66c0cbc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions poetry/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ runs:
using: "composite"
steps:
- name: Set up python ${{ inputs.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python-version }}
- name: Get Python version
shell: bash
run: |
echo "PYTHON_VERSION=$(python --version | awk '{ print $NF }')" >> $GITHUB_ENV
- name: Load cached Poetry installation
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.local
key: dotlocal-${{ runner.os }}-py${{ env.PYTHON_VERSION }}-0
# absolute path for hashFiles is broken
# absolute path for hashFiles is broken on v2
# key: dotlocal-${{ runner.os }}-${{ hashFiles(format('{0}/action.yaml', github.action_path)) }}

- name: Install Poetry
Expand Down Expand Up @@ -57,7 +57,7 @@ runs:
- name: Ensure cache is healthy
if: steps.cached-poetry-venv.outputs.cache-hit == 'true'
shell: bash
run: timeout 10s poetry run pip --version || rm -rf .venv
run: timeout 10s poetry run pip --version || rm -rf ${{ steps.get-venv-path.outputs.venv-path }}
# install dependencies if cache does not exist
- name: Check cache and install dependencies
shell: bash
Expand Down

0 comments on commit 66c0cbc

Please sign in to comment.