From d87569085d327edbb6c9a758082ecf956ce79034 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Thu, 22 Feb 2024 13:22:07 +0100 Subject: [PATCH] ci(linux): determine correct version [skip ci] --- .github/workflows/insider-linux.yml | 6 ++++++ check_tags.sh | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/insider-linux.yml b/.github/workflows/insider-linux.yml index 74ccb4d..bae91ec 100644 --- a/.github/workflows/insider-linux.yml +++ b/.github/workflows/insider-linux.yml @@ -91,6 +91,12 @@ jobs: - name: Clone VSCode repo run: ./get_repo.sh + - name: Check existing VSCodium tags/releases + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CHECK_ASSETS: 'no' + run: ./check_tags.sh + - name: Build run: ./build.sh diff --git a/check_tags.sh b/check_tags.sh index 1f024ad..2e291eb 100755 --- a/check_tags.sh +++ b/check_tags.sh @@ -47,7 +47,7 @@ contains() { echo "${ASSETS}" | grep "${1}\"" } -if [[ "${ASSETS}" != "null" ]]; then +if [[ "${ASSETS}" != "null" && "${CHECK_ASSETS}" != "no" ]]; then if [[ "${IS_SPEARHEAD}" == "yes" ]]; then if [[ -z $( contains "${APP_NAME}-${RELEASE_VERSION}-src.tar.gz" ) || -z $( contains "${APP_NAME}-${RELEASE_VERSION}-src.zip" ) ]]; then echo "Building because we have no SRC"