From bb86fdaa368fdd0e64a940d5ac22926d9898d7c8 Mon Sep 17 00:00:00 2001 From: mrbean-bremen Date: Wed, 15 May 2024 18:53:32 +0200 Subject: [PATCH] Fix CI warning annotations - replace deprecated set-output command - use a supported version of gh-action-pypi-publish action --- .github/workflows/pythontests.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pythontests.yml b/.github/workflows/pythontests.yml index b89a2b8..851ec8a 100644 --- a/.github/workflows/pythontests.yml +++ b/.github/workflows/pythontests.yml @@ -23,7 +23,8 @@ jobs: - name: Get pip cache dir id: pip-cache run: | - echo "::set-output name=dir::$(pip cache dir)" + echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT + echo "dir=$(pip cache dir)" >> $env:GITHUB_OUTPUT - name: pip cache uses: actions/cache@v4 with: @@ -60,7 +61,8 @@ jobs: id: pip-cache run: | python -m pip install -U pip # to ensure version > 20 to have cache dir - echo "::set-output name=dir::$(pip cache dir)" + echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT + echo "dir=$(pip cache dir)" >> $env:GITHUB_OUTPUT - name: pip cache uses: actions/cache@v4 with: @@ -106,7 +108,7 @@ jobs: cd main python setup.py sdist bdist_wheel - name: Publish package to PyPI - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@release/v1 with: packages_dir: main/dist/ user: __token__