mirror of
https://github.com/pmeier/light-the-torch.git
synced 2024-09-08 23:29:28 +03:00
update deprecated set-output GHA commands (#101)
This commit is contained in:
2
.github/actions/setup-dev-env/action.yml
vendored
2
.github/actions/setup-dev-env/action.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
4
.github/workflows/tests-pip-latest.yml
vendored
4
.github/workflows/tests-pip-latest.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user