From cc7121f31a2949e0ee1fb40d55d79249dd84a88f Mon Sep 17 00:00:00 2001 From: David Robertson Date: Tue, 18 Oct 2022 01:12:45 +0100 Subject: [PATCH 1/3] Use GITHUB_OUTPUT --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 6c5b852..ebc02d5 100644 --- a/action.yml +++ b/action.yml @@ -40,7 +40,7 @@ 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 @@ -59,7 +59,7 @@ 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 From 0c2b564dbd3f62fdc4716322f93644ba7f176db9 Mon Sep 17 00:00:00 2001 From: David Robertson Date: Tue, 18 Oct 2022 01:13:54 +0100 Subject: [PATCH 2/3] Bump cache action to include https://github.com/actions/cache/pull/950 --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index ebc02d5..1da0b3e 100644 --- a/action.yml +++ b/action.yml @@ -45,7 +45,7 @@ runs: - 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 }} @@ -64,7 +64,7 @@ runs: - 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 }} From d7a7a147d7a0798a9b61c06e8e38385ba91e7516 Mon Sep 17 00:00:00 2001 From: David Robertson Date: Tue, 18 Oct 2022 01:17:48 +0100 Subject: [PATCH 3/3] Bump setup-python To include https://github.com/actions/setup-python/pull/517 --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 1da0b3e..1ad4f74 100644 --- a/action.yml +++ b/action.yml @@ -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 }}