CI: Use new syntax for setting github output (#15415)
Use new syntax for setting github output Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
This commit is contained in:
parent
3dcb85a85a
commit
a00dfc850d
|
@ -59,12 +59,9 @@ jobs:
|
|||
if: ${{ matrix.requires == 'oldest' }}
|
||||
run: python .actions/assistant.py replace_oldest_ver
|
||||
|
||||
# Note: This uses an internal pip API and may not always work
|
||||
# https://github.com/actions/cache/blob/master/examples.md#multiple-oss-in-a-workflow
|
||||
- name: Get pip cache
|
||||
- name: Get pip cache dir
|
||||
id: pip-cache
|
||||
run: |
|
||||
python -c "from pip._internal.locations import USER_CACHE_DIR; print('::set-output name=dir::' + USER_CACHE_DIR)"
|
||||
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache pip
|
||||
uses: actions/cache@v3
|
||||
|
|
|
@ -62,10 +62,9 @@ jobs:
|
|||
if: ${{ matrix.requires == 'oldest' }}
|
||||
run: python .actions/assistant.py replace_oldest_ver
|
||||
|
||||
- name: Get pip cache
|
||||
- name: Get pip cache dir
|
||||
id: pip-cache
|
||||
run: |
|
||||
python -c "from pip._internal.locations import USER_CACHE_DIR; print('::set-output name=dir::' + USER_CACHE_DIR)"
|
||||
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache pip
|
||||
uses: actions/cache@v3
|
||||
|
|
|
@ -91,11 +91,9 @@ jobs:
|
|||
python ./requirements/pytorch/adjust-versions.py requirements/lite/base.txt ${{ matrix.pytorch-version }}
|
||||
cat requirements/lite/base.txt
|
||||
|
||||
# Note: This uses an internal pip API and may not always work
|
||||
# https://github.com/actions/cache/blob/master/examples.md#multiple-oss-in-a-workflow
|
||||
- name: Get pip cache dir
|
||||
id: pip-cache
|
||||
run: echo "::set-output name=dir::$(pip cache dir)"
|
||||
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: pip cache
|
||||
uses: actions/cache@v3
|
||||
|
|
|
@ -116,7 +116,7 @@ jobs:
|
|||
|
||||
- name: Get pip cache dir
|
||||
id: pip-cache
|
||||
run: echo "::set-output name=dir::$(pip cache dir)"
|
||||
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: pip cache
|
||||
uses: actions/cache@v3
|
||||
|
|
|
@ -25,7 +25,7 @@ jobs:
|
|||
|
||||
- name: Get release version
|
||||
id: get_version
|
||||
run: echo "::set-output name=RELEASE_VERSION::$(echo ${GITHUB_REF##*/})"
|
||||
run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF##*/})" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Publish Releases to Docker
|
||||
uses: docker/build-push-action@v3
|
||||
|
|
|
@ -34,12 +34,9 @@ jobs:
|
|||
run: |
|
||||
brew install libomp # https://github.com/pytorch/pytorch/issues/20030
|
||||
|
||||
# Note: This uses an internal pip API and may not always work
|
||||
# https://github.com/actions/cache/blob/master/examples.md#multiple-oss-in-a-workflow
|
||||
- name: Get pip cache
|
||||
- name: Get pip cache dir
|
||||
id: pip-cache
|
||||
run: |
|
||||
python -c "from pip._internal.locations import USER_CACHE_DIR; print('::set-output name=dir::' + USER_CACHE_DIR)"
|
||||
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache pip
|
||||
uses: actions/cache@v2
|
||||
|
|
Loading…
Reference in New Issue