update deprecated set-output GHA commands (#101)

This commit is contained in:
Philip Meier
2022-10-23 22:51:59 +02:00
committed by GitHub
parent 6d6119e1e9
commit c5d84b16e5
3 changed files with 4 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ runs:
run: |
pip install appdirs
CACHE_PATH=`python -c "import appdirs; print(appdirs.user_cache_dir('pip', appauthor=False))"`
echo "::set-output name=path::$CACHE_PATH"
echo "path=${CACHE_PATH}" >> $GITHUB_OUTPUT
- name: Restore pip cache
uses: actions/cache@v2

View File

@@ -27,7 +27,7 @@ jobs:
id: pytorch-dists
run: |
PYTORCH_DISTS=`python scripts/check_available_pytorch_dists.py`
echo "::set-output name=pytorch-dists::${PYTORCH_DISTS}"
echo "pytorch-dists=${PYTORCH_DISTS}" >> $GITHUB_OUTPUT
if [[ -n "${PYTORCH_DISTS}" ]]; then { echo "${PYTORCH_DISTS}"; exit 1; }; fi
- name: Check template

View File

@@ -33,7 +33,7 @@ jobs:
run: |
VERSION=`pip show pip | grep Version | sed 's/Version: \(.*\)/\1/'`
echo "${VERSION}"
echo "::set-output name=version::${VERSION}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT
- name: Upgrade pip and extract version
id: latest
@@ -45,7 +45,7 @@ jobs:
VERSION=`pip show pip | grep Version | sed 's/Version: \(.*\)/\1/'`
echo "${VERSION}"
echo "::set-output name=version::${VERSION}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT
- name: Run unit test
id: tests