Skip to content

Commit

Permalink
update deprecated set-output GHA commands (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier authored Oct 23, 2022
1 parent 6d6119e commit c5d84b1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-dev-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-available-pytorch-dists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests-pip-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c5d84b1

Please sign in to comment.