From 99450b6c9b1e9ae45c74ae792fce666f651ac0b2 Mon Sep 17 00:00:00 2001 From: Paul Copplestone Date: Sun, 22 Nov 2020 14:46:21 +0800 Subject: [PATCH] fix: converts all "set-env" commands. Now dumps to an env file --- .github/workflows/release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e8a6c43e3..8910faf09 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v2 - name: Get version before - run: echo ::set-env name=VERSION_BEFORE::$(curl -s https://api.github.com/repos/supabase/realtime/releases/latest | jq .name -r) + run: echo VERSION_BEFORE=$(curl -s https://api.github.com/repos/supabase/realtime/releases/latest | jq .name -r) >> $GITHUB_ENV - name: Release on GitHub run: npx semantic-release -p \ @@ -26,7 +26,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Get version after - run: echo ::set-env name=VERSION_AFTER::$(curl -s https://api.github.com/repos/supabase/realtime/releases/latest | jq .name -r) + run: echo VERSION_AFTER=$(curl -s https://api.github.com/repos/supabase/realtime/releases/latest | jq .name -r) >> $GITHUB_ENV - name: Check version difference run: | @@ -60,7 +60,7 @@ jobs: name: has-new-release - name: Check for new release - run: echo ::set-env name=HAS_NEW_RELEASE::$(cat has-new-release/has-new-release) + run: echo HAS_NEW_RELEASE=$(cat has-new-release/has-new-release) >> $GITHUB_ENV - uses: actions/checkout@v2 if: env.HAS_NEW_RELEASE == 1 @@ -83,7 +83,7 @@ jobs: - name: Get version if: env.HAS_NEW_RELEASE == 1 - run: echo ::set-env name=VERSION::$(curl -s https://api.github.com/repos/supabase/realtime/releases/latest | jq .name -r) + run: echo VERSION=$(curl -s https://api.github.com/repos/supabase/realtime/releases/latest | jq .name -r) >> $GITHUB_ENV - name: Prepare release if: env.HAS_NEW_RELEASE == 1 @@ -98,7 +98,7 @@ jobs: - name: Get upload url if: env.HAS_NEW_RELEASE == 1 - run: echo ::set-env name=UPLOAD_URL::$(curl -s https://api.github.com/repos/supabase/realtime/releases/latest | jq .upload_url -r) + run: echo UPLOAD_URL=$(curl -s https://api.github.com/repos/supabase/realtime/releases/latest | jq .upload_url -r) >> $GITHUB_ENV - name: Upload release asset if: env.HAS_NEW_RELEASE == 1