Skip to content

Commit

Permalink
Use an output instead of an env
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Oct 29, 2020
1 parent 46a9cdf commit b8caf98
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ jobs:
env:
NO_CHECKS: 'true'

- name: Set Release Name
run: echo "release_name=$(echo ${{ github.ref }} | sed s/^v// | sed 's/-rc./ RC/')" >> $GITHUB_ENV
- name: Set Release Version
id: get_release_version
run: echo ::set-output name=version::$(echo $GITHUB_REF | cut -d / -f 3 | sed s/^v// | sed 's/-rc./ RC/' )

- name: Create Release
id: create_release
Expand All @@ -29,7 +30,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ env.release_name }}
release_name: ${{ steps.get_release_version.outputs.version }}
draft: true
prerelease: ${{ contains(github.ref, 'rc') }}

Expand Down

0 comments on commit b8caf98

Please sign in to comment.