diff --git a/.github/workflows/ci-app-examples.yml b/.github/workflows/ci-app-examples.yml index 2f4447c59f..457a01d643 100644 --- a/.github/workflows/ci-app-examples.yml +++ b/.github/workflows/ci-app-examples.yml @@ -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 diff --git a/.github/workflows/ci-app-tests.yml b/.github/workflows/ci-app-tests.yml index 3a7a56308a..4bcf1850ef 100644 --- a/.github/workflows/ci-app-tests.yml +++ b/.github/workflows/ci-app-tests.yml @@ -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 diff --git a/.github/workflows/ci-lite-tests.yml b/.github/workflows/ci-lite-tests.yml index b591fab58b..cfd9c9a0b4 100644 --- a/.github/workflows/ci-lite-tests.yml +++ b/.github/workflows/ci-lite-tests.yml @@ -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 diff --git a/.github/workflows/ci-pytorch-tests.yml b/.github/workflows/ci-pytorch-tests.yml index 4da920c5e8..91d0a73452 100644 --- a/.github/workflows/ci-pytorch-tests.yml +++ b/.github/workflows/ci-pytorch-tests.yml @@ -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 diff --git a/.github/workflows/release-docker.yml b/.github/workflows/release-docker.yml index 73ca6fd8f8..eccbf60849 100644 --- a/.github/workflows/release-docker.yml +++ b/.github/workflows/release-docker.yml @@ -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 diff --git a/src/lightning_app/cli/component-template/.github/workflows/ci-testing.yml b/src/lightning_app/cli/component-template/.github/workflows/ci-testing.yml index 6d59523e04..365682e2c1 100644 --- a/src/lightning_app/cli/component-template/.github/workflows/ci-testing.yml +++ b/src/lightning_app/cli/component-template/.github/workflows/ci-testing.yml @@ -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