Explorar o código

ci(linux): determine correct version [skip ci]

Baptiste Augrain hai 1 ano
pai
achega
d87569085d
Modificáronse 2 ficheiros con 7 adicións e 1 borrados
  1. 6 0
      .github/workflows/insider-linux.yml
  2. 1 1
      check_tags.sh

+ 6 - 0
.github/workflows/insider-linux.yml

@@ -91,6 +91,12 @@ jobs:
       - name: Clone VSCode repo
       - name: Clone VSCode repo
         run: ./get_repo.sh
         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
       - name: Build
         run: ./build.sh
         run: ./build.sh
 
 

+ 1 - 1
check_tags.sh

@@ -47,7 +47,7 @@ contains() {
   echo "${ASSETS}" | grep "${1}\""
   echo "${ASSETS}" | grep "${1}\""
 }
 }
 
 
-if [[ "${ASSETS}" != "null" ]]; then
+if [[ "${ASSETS}" != "null" && "${CHECK_ASSETS}" != "no" ]]; then
   if [[ "${IS_SPEARHEAD}" == "yes" ]]; 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
     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"
       echo "Building because we have no SRC"