ci: force output missing variables

This commit is contained in:
Baptiste Augrain 2022-10-23 19:53:10 +02:00
parent fb37594000
commit 728235372d
2 changed files with 9 additions and 7 deletions

View File

@ -23,10 +23,10 @@ jobs:
container: container:
image: vscodium/vscodium-linux-build-agent:bionic-x64 image: vscodium/vscodium-linux-build-agent:bionic-x64
env: env:
GIT_BRANCH: insider GITHUB_BRANCH: insider
VSCODE_QUALITY: insider VSCODE_QUALITY: insider
outputs: outputs:
GIT_BRANCH: ${{ env.GIT_BRANCH }} GITHUB_BRANCH: ${{ env.GITHUB_BRANCH }}
MS_COMMIT: ${{ env.MS_COMMIT }} MS_COMMIT: ${{ env.MS_COMMIT }}
MS_TAG: ${{ env.MS_TAG }} MS_TAG: ${{ env.MS_TAG }}
RELEASE_VERSION: ${{ env.RELEASE_VERSION }} RELEASE_VERSION: ${{ env.RELEASE_VERSION }}
@ -37,7 +37,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
ref: ${{ env.GIT_BRANCH }} ref: ${{ env.GITHUB_BRANCH }}
- name: Clone VSCode repo - name: Clone VSCode repo
env: env:
@ -53,7 +53,7 @@ jobs:
container: container:
image: ${{ matrix.image }} image: ${{ matrix.image }}
env: env:
GIT_BRANCH: ${{ needs.check.outputs.GIT_BRANCH }} GITHUB_BRANCH: ${{ needs.check.outputs.GITHUB_BRANCH }}
MS_COMMIT: ${{ needs.check.outputs.MS_COMMIT }} MS_COMMIT: ${{ needs.check.outputs.MS_COMMIT }}
MS_TAG: ${{ needs.check.outputs.MS_TAG }} MS_TAG: ${{ needs.check.outputs.MS_TAG }}
RELEASE_VERSION: ${{ needs.check.outputs.RELEASE_VERSION }} RELEASE_VERSION: ${{ needs.check.outputs.RELEASE_VERSION }}
@ -71,7 +71,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
ref: ${{ env.GIT_BRANCH }} ref: ${{ env.GITHUB_BRANCH }}
- name: Clone VSCode repo - name: Clone VSCode repo
run: ./get_repo.sh run: ./get_repo.sh
@ -113,7 +113,7 @@ jobs:
env: env:
APP_NAME: VSCodium APP_NAME: VSCodium
ASSETS_REPOSITORY: ${{ github.repository }}-insiders ASSETS_REPOSITORY: ${{ github.repository }}-insiders
GIT_BRANCH: ${{ needs.check.outputs.GIT_BRANCH }} GITHUB_BRANCH: ${{ needs.check.outputs.GITHUB_BRANCH }}
MS_COMMIT: ${{ needs.check.outputs.MS_COMMIT }} MS_COMMIT: ${{ needs.check.outputs.MS_COMMIT }}
MS_TAG: ${{ needs.check.outputs.MS_TAG }} MS_TAG: ${{ needs.check.outputs.MS_TAG }}
OS_NAME: linux OS_NAME: linux
@ -141,7 +141,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
ref: ${{ env.GIT_BRANCH }} ref: ${{ env.GITHUB_BRANCH }}
- name: Clone VSCode repo - name: Clone VSCode repo
run: ./get_repo.sh run: ./get_repo.sh

View File

@ -23,6 +23,8 @@ else
fi fi
if [[ "${GITHUB_ENV}" ]]; then if [[ "${GITHUB_ENV}" ]]; then
echo "GITHUB_BRANCH=${GITHUB_BRANCH}" >> "${GITHUB_ENV}"
echo "SHOULD_BUILD=${SHOULD_BUILD}" >> "${GITHUB_ENV}" echo "SHOULD_BUILD=${SHOULD_BUILD}" >> "${GITHUB_ENV}"
echo "SHOULD_DEPLOY=${SHOULD_DEPLOY}" >> "${GITHUB_ENV}" echo "SHOULD_DEPLOY=${SHOULD_DEPLOY}" >> "${GITHUB_ENV}"
echo "VSCODE_QUALITY=${VSCODE_QUALITY}" >> "${GITHUB_ENV}"
fi fi