ci: add input to set a specific built version [skip ci]
This commit is contained in:
parent
b803eaaefe
commit
ba9a6a1319
4 changed files with 33 additions and 7 deletions
6
.github/workflows/insider-linux.yml
vendored
6
.github/workflows/insider-linux.yml
vendored
|
@ -2,6 +2,10 @@ name: insider-linux
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
release_version:
|
||||||
|
type: string
|
||||||
|
description: Forced release version
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 1 * * *'
|
- cron: '0 1 * * *'
|
||||||
push:
|
push:
|
||||||
|
@ -53,6 +57,8 @@ jobs:
|
||||||
run: npm install -g yarn
|
run: npm install -g yarn
|
||||||
|
|
||||||
- name: Clone VSCode repo
|
- name: Clone VSCode repo
|
||||||
|
env:
|
||||||
|
RELEASE_VERSION: ${{ github.event.inputs.release_version }}
|
||||||
run: ./get_repo.sh
|
run: ./get_repo.sh
|
||||||
|
|
||||||
- name: Check PR or cron
|
- name: Check PR or cron
|
||||||
|
|
7
.github/workflows/insider-macos.yml
vendored
7
.github/workflows/insider-macos.yml
vendored
|
@ -2,6 +2,10 @@ name: insider-macos
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
release_version:
|
||||||
|
type: string
|
||||||
|
description: Forced release version
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 1 * * *'
|
- cron: '0 1 * * *'
|
||||||
push:
|
push:
|
||||||
|
@ -38,6 +42,8 @@ jobs:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
|
|
||||||
- name: Clone VSCode repo
|
- name: Clone VSCode repo
|
||||||
|
env:
|
||||||
|
RELEASE_VERSION: ${{ github.event.inputs.release_version }}
|
||||||
run: . get_repo.sh
|
run: . get_repo.sh
|
||||||
|
|
||||||
- name: Check PR or cron
|
- name: Check PR or cron
|
||||||
|
@ -46,7 +52,6 @@ jobs:
|
||||||
- name: Check existing VSCodium tags/releases
|
- name: Check existing VSCodium tags/releases
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
NEW_RELEASE: ${{ github.event.inputs.new_release }}
|
|
||||||
run: . check_tags.sh
|
run: . check_tags.sh
|
||||||
if: env.SHOULD_DEPLOY == 'yes'
|
if: env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
|
|
7
.github/workflows/insider-windows.yml
vendored
7
.github/workflows/insider-windows.yml
vendored
|
@ -2,6 +2,10 @@ name: insider-windows
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
release_version:
|
||||||
|
type: string
|
||||||
|
description: Forced release version
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 1 * * *'
|
- cron: '0 1 * * *'
|
||||||
push:
|
push:
|
||||||
|
@ -48,6 +52,8 @@ jobs:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
|
|
||||||
- name: Clone VSCode repo
|
- name: Clone VSCode repo
|
||||||
|
env:
|
||||||
|
RELEASE_VERSION: ${{ github.event.inputs.release_version }}
|
||||||
run: ./get_repo.sh
|
run: ./get_repo.sh
|
||||||
|
|
||||||
- name: Check PR or cron
|
- name: Check PR or cron
|
||||||
|
@ -56,7 +62,6 @@ jobs:
|
||||||
- name: Check existing VSCodium tags/releases
|
- name: Check existing VSCodium tags/releases
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
NEW_RELEASE: ${{ github.event.inputs.new_release }}
|
|
||||||
run: ./check_tags.sh
|
run: ./check_tags.sh
|
||||||
if: env.SHOULD_DEPLOY == 'yes'
|
if: env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
|
|
10
get_repo.sh
10
get_repo.sh
|
@ -31,6 +31,15 @@ if [[ -z "${RELEASE_VERSION}" ]]; then
|
||||||
else
|
else
|
||||||
export RELEASE_VERSION="${MS_TAG}.${date: -5}"
|
export RELEASE_VERSION="${MS_TAG}.${date: -5}"
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
if [[ "${VSCODE_QUALITY}" == "insider" ]]; then
|
||||||
|
if [[ "${RELEASE_VERSION}" =~ ^([0-9]+\.[0-9]+\.[0-9]+)\.[0-9]+-insider$ ]];
|
||||||
|
then
|
||||||
|
MS_TAG="${BASH_REMATCH[1]}"
|
||||||
|
else
|
||||||
|
echo "Bad RELEASE_VERSION: ${RELEASE_VERSION}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
if [[ "${RELEASE_VERSION}" =~ ^([0-9]+\.[0-9]+\.[0-9]+)\.[0-9]+$ ]];
|
if [[ "${RELEASE_VERSION}" =~ ^([0-9]+\.[0-9]+\.[0-9]+)\.[0-9]+$ ]];
|
||||||
then
|
then
|
||||||
|
@ -40,6 +49,7 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
echo "RELEASE_VERSION=\"${RELEASE_VERSION}\""
|
echo "RELEASE_VERSION=\"${RELEASE_VERSION}\""
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue