Skip to content

Commit

Permalink
Fix deprecated ::set-env
Browse files Browse the repository at this point in the history
  • Loading branch information
baruchiro authored Nov 23, 2020
1 parent 94fec56 commit 4abd217
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ jobs:
- name: Set version in Env
shell: bash
run: |
echo ::set-env name=package_version::`awk -F ':' '/version/ {print $2}' package.json | sed 's/\"//g' | sed 's/,//g' | sed 's/ //g'`
echo "Version is `awk -F ':' '/version/ {print $2}' package.json | sed 's/\"//g' | sed 's/,//g' | sed 's/ //g'`"
package_version=`awk -F ':' '/version/ {print $2}' package.json | sed 's/\"//g' | sed 's/,//g' | sed 's/ //g'`
echo "package_version=$package_version" >> $GITHUB_ENV
echo "Version is $package_version"
- uses: actions/github-script@v2.0.1
name: Check if current version is a published release (by release tag)
id: check_release
Expand Down

0 comments on commit 4abd217

Please sign in to comment.