fix(winget): run with bash [skip ci]

This commit is contained in:
Baptiste Augrain 2022-09-19 11:12:45 +02:00
parent e87d2b2587
commit 39fab7d947
4 changed files with 9 additions and 4 deletions

View File

@ -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'

View File

@ -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:

View File

@ -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

View File

@ -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