1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-24 11:55:50 +01:00

fix env refs

This commit is contained in:
Kyle Spearrin 2020-03-24 10:36:29 -04:00
parent b6cb373749
commit 4e530b4712

View File

@ -46,8 +46,8 @@ jobs:
run: | run: |
$PACKAGE_VERSION = (Get-Content -Raw -Path .\src\package.json | ConvertFrom-Json).version $PACKAGE_VERSION = (Get-Content -Raw -Path .\src\package.json | ConvertFrom-Json).version
$PROD_DEPLOY = "false" $PROD_DEPLOY = "false"
if($env.GITHUB_REF.StartsWith("refs/tags/v")) { if($env:GITHUB_REF.StartsWith("refs/tags/v")) {
echo "::set-env name=RELEASE_NAME::$env.GITHUB_REF.Replace('refs/tags/v', '')" echo "::set-env name=RELEASE_NAME::$env:GITHUB_REF.Replace('refs/tags/v', '')"
} }
echo "::set-env name=PACKAGE_VERSION::$PACKAGE_VERSION" echo "::set-env name=PACKAGE_VERSION::$PACKAGE_VERSION"
echo "::set-env name=PROD_DEPLOY::$PROD_DEPLOY" echo "::set-env name=PROD_DEPLOY::$PROD_DEPLOY"