From 486f84baba98f219b3ac69bd447da22e710e3daa Mon Sep 17 00:00:00 2001 From: Anush Date: Sat, 29 Apr 2023 22:52:20 +0530 Subject: [PATCH] fix: set-output deprecation warning (#51) --- .github/workflows/release.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2887f130..82eee059 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,8 +18,10 @@ jobs: - name: "☁️ compute environment variables" id: env run: | - echo "::set-output name=DEPLOY_ENVIRONMENT::$([[ ${{ github.ref_name }} == 'main' ]] && echo 'production' || echo ${{ github.ref_name }})" - echo "::set-output name=DEPLOY_SUBDOMAIN::$([[ ${{ github.ref_name }} == 'main' ]] && echo '' || echo '${{ github.ref_name }}.')" + DEPLOY_ENVIRONMENT=$([[ ${{ github.ref_name }} == 'main' ]] && echo 'production' || echo ${{ github.ref_name }}) + DEPLOY_SUBDOMAIN=$([[ ${{ github.ref_name }} == 'main' ]] && echo '' || echo "${{ github.ref_name }}.") + echo "DEPLOY_ENVIRONMENT=$DEPLOY_ENVIRONMENT" >> $GITHUB_ENV + echo "DEPLOY_SUBDOMAIN=$DEPLOY_SUBDOMAIN" >> $GITHUB_ENV build: name: Build application runs-on: ubuntu-latest @@ -87,4 +89,4 @@ jobs: uses: geekyeggo/delete-artifact@v1 with: name: | - build \ No newline at end of file + build