From 9b5f6ee2c5193e9e796576cc4069c8399bfcd51b Mon Sep 17 00:00:00 2001 From: Dmitry Verkhoturov Date: Sun, 10 Nov 2024 21:39:00 +0000 Subject: [PATCH] Remove deprecated set-output function usage in GitHub actions The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- .github/workflows/ci-frontend-api.yml | 15 ++++++--------- .github/workflows/ci-frontend.yml | 20 ++++++++------------ 2 files changed, 14 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci-frontend-api.yml b/.github/workflows/ci-frontend-api.yml index 58f7d9d6..7061e375 100644 --- a/.github/workflows/ci-frontend-api.yml +++ b/.github/workflows/ci-frontend-api.yml @@ -40,13 +40,12 @@ jobs: - name: Get pnpm store directory id: pnpm-cache - run: | - echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" + run: echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_ENV - name: Setup pnpm cache uses: actions/cache@v4 with: - path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} + path: ${{ env.pnpm_cache_dir }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pnpm-store- @@ -84,13 +83,12 @@ jobs: - name: Get pnpm store directory id: pnpm-cache - run: | - echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" + run: echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_ENV - name: Setup pnpm cache uses: actions/cache@v4 with: - path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} + path: ${{ env.pnpm_cache_dir }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pnpm-store- @@ -128,13 +126,12 @@ jobs: - name: Get pnpm store directory id: pnpm-cache - run: | - echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" + run: echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_ENV - name: Setup pnpm cache uses: actions/cache@v4 with: - path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} + path: ${{ env.pnpm_cache_dir }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pnpm-store- diff --git a/.github/workflows/ci-frontend.yml b/.github/workflows/ci-frontend.yml index 4eb8fe25..ed1996af 100644 --- a/.github/workflows/ci-frontend.yml +++ b/.github/workflows/ci-frontend.yml @@ -40,13 +40,12 @@ jobs: - name: Get pnpm store directory id: pnpm-cache - run: | - echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" + run: echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_ENV - name: Setup pnpm cache uses: actions/cache@v4 with: - path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} + path: ${{ env.pnpm_cache_dir }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pnpm-store- @@ -84,13 +83,12 @@ jobs: - name: Get pnpm store directory id: pnpm-cache - run: | - echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" + run: echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_ENV - name: Setup pnpm cache uses: actions/cache@v4 with: - path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} + path: ${{ env.pnpm_cache_dir }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pnpm-store- @@ -128,13 +126,12 @@ jobs: - name: Get pnpm store directory id: pnpm-cache - run: | - echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" + run: echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_ENV - name: Setup pnpm cache uses: actions/cache@v4 with: - path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} + path: ${{ env.pnpm_cache_dir }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pnpm-store- @@ -196,13 +193,12 @@ jobs: - name: Get pnpm store directory id: pnpm-cache - run: | - echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" + run: echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_ENV - name: Setup pnpm cache uses: actions/cache@v4 with: - path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} + path: ${{ env.pnpm_cache_dir }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pnpm-store-