From 4e530b47128b3b36814c3393161913f884e15877 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 24 Mar 2020 10:36:29 -0400 Subject: [PATCH] fix env refs --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8cc4f2dd..ed1b4397 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,8 +46,8 @@ jobs: run: | $PACKAGE_VERSION = (Get-Content -Raw -Path .\src\package.json | ConvertFrom-Json).version $PROD_DEPLOY = "false" - if($env.GITHUB_REF.StartsWith("refs/tags/v")) { - echo "::set-env name=RELEASE_NAME::$env.GITHUB_REF.Replace('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=PACKAGE_VERSION::$PACKAGE_VERSION" echo "::set-env name=PROD_DEPLOY::$PROD_DEPLOY"