Skip to content

Commit

Permalink
Merge pull request #79 from supabase/fix/actions_78
Browse files Browse the repository at this point in the history
fix: converts all "set-env" commands. Now dumps to an env file
  • Loading branch information
kiwicopple authored Nov 22, 2020
2 parents 3669013 + 99450b6 commit 5b9edaa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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: |
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5b9edaa

Please sign in to comment.