From 39fab7d9472e0dae23b0d35a9ae97c149a658760 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Mon, 19 Sep 2022 11:12:45 +0200 Subject: [PATCH] fix(winget): run with bash [skip ci] --- .github/workflows/insider-windows.yml | 3 +++ .github/workflows/stable-windows.yml | 6 ++++++ check_cron_or_pr.sh | 2 -- get_repo.sh | 2 -- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/insider-windows.yml b/.github/workflows/insider-windows.yml index ddd2bf3..f8c974f 100644 --- a/.github/workflows/insider-windows.yml +++ b/.github/workflows/insider-windows.yml @@ -116,6 +116,9 @@ jobs: winget: needs: build runs-on: windows-latest + defaults: + run: + shell: bash env: VSCODE_QUALITY: 'insider' if: needs.build.outputs.SHOULD_DEPLOY == 'yes' diff --git a/.github/workflows/stable-windows.yml b/.github/workflows/stable-windows.yml index 2cb9ad8..ab69253 100644 --- a/.github/workflows/stable-windows.yml +++ b/.github/workflows/stable-windows.yml @@ -34,6 +34,9 @@ jobs: - x64 - ia32 - arm64 + outputs: + RELEASE_VERSION: ${{ env.RELEASE_VERSION }} + SHOULD_DEPLOY: ${{ env.SHOULD_DEPLOY }} steps: - uses: actions/checkout@v3 @@ -110,6 +113,9 @@ jobs: winget: needs: build runs-on: windows-latest + defaults: + run: + shell: bash if: needs.build.outputs.SHOULD_DEPLOY == 'yes' steps: diff --git a/check_cron_or_pr.sh b/check_cron_or_pr.sh index 213641f..000633d 100755 --- a/check_cron_or_pr.sh +++ b/check_cron_or_pr.sh @@ -25,6 +25,4 @@ fi if [[ "${GITHUB_ENV}" ]]; then echo "SHOULD_BUILD=${SHOULD_BUILD}" >> "${GITHUB_ENV}" echo "SHOULD_DEPLOY=${SHOULD_DEPLOY}" >> "${GITHUB_ENV}" - - echo "::set-output name=SHOULD_DEPLOY::${SHOULD_DEPLOY}" fi diff --git a/get_repo.sh b/get_repo.sh index 3ddaebe..bbf03ac 100755 --- a/get_repo.sh +++ b/get_repo.sh @@ -107,8 +107,6 @@ if [[ ${GITHUB_ENV} ]]; then echo "MS_TAG=${MS_TAG}" >> "${GITHUB_ENV}" echo "MS_COMMIT=${MS_COMMIT}" >> "${GITHUB_ENV}" echo "RELEASE_VERSION=${RELEASE_VERSION}" >> "${GITHUB_ENV}" - - echo "::set-output name=RELEASE_VERSION::${RELEASE_VERSION}" fi . version.sh