Skip to content

Commit

Permalink
🚑 Use GITHUB_ENV to store environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Borie, Niels committed Sep 23, 2022
1 parent 6db29f2 commit 4965a6a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/tag_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,16 @@ jobs:
git config user.email [email protected]
- name: Setup release information
run: |
versionName=`cat ./VERSION.txt`
export VERSION_NAME=$versionName
echo "::set-env name=VERSION_NAME::$VERSION_NAME"
versionNumber=`cat ./VERSION.txt`
echo "VERSION_NUMBER=$versionNumber" >> $GITHUB_ENV
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.VERSION_NAME }}
release_name: v${{ env.VERSION_NAME }}
tag_name: ${{ env.VERSION_NUMBER }}
release_name: v${{ env.VERSION_NUMBER }}
body_path: ./CHANGELOG.md
draft: false
prerelease: false

0 comments on commit 4965a6a

Please sign in to comment.