From a9fee411747c8ba26778247d92ee300f66d2caca Mon Sep 17 00:00:00 2001 From: Joseph Flinn Date: Tue, 2 Feb 2021 12:15:33 -0800 Subject: [PATCH] fixing shell --- .github/workflows/build.yml | 1 - .github/workflows/release.yml | 8 +++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 07285e5262..3d73f711a9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,7 +34,6 @@ jobs: - name: Get Package Version id: gen_vars - shell: pwsh run: | repo_url="https://github.com/${{ env.GITHUB_REPOSITORY }}.git" build_num=$(${{ env.GITHUB_RUN_NUMBER }} + 3000) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 03f4791cf0..1c07838218 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,14 +34,12 @@ jobs: - name: Get Package Version id: gen_vars - shell: pwsh run: | - $repo_url = "https://github.com/${env:GITHUB_REPOSITORY}.git" - $build_num = [int]$env:GITHUB_RUN_NUMBER - $adj_build_num = $build_num + 3000 + repo_url="https://github.com/${{ env.GITHUB_REPOSITORY }}.git" + build_num=$(${{ env.GITHUB_RUN_NUMBER }} + 3000) echo "::set-output name=repo_url::$repo_url" - echo "::set-output name=adj_build_number::$adj_build_num" + echo "::set-output name=adj_build_number::$build_num" cli: