From 8737578ae589e74689fb21e0fd7cc3af024d043d Mon Sep 17 00:00:00 2001
From: Baptiste Augrain <daiyam@zokugun.org>
Date: Tue, 30 Aug 2022 14:46:23 +0200
Subject: [PATCH] fix: update spearhead workflow [skip ci]

---
 .github/workflows/insider-macos.yml     |  2 ++
 .github/workflows/insider-spearhead.yml | 12 +++++-------
 .github/workflows/insider-windows.yml   |  2 ++
 3 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/insider-macos.yml b/.github/workflows/insider-macos.yml
index 0b38e1f..d79b6be 100644
--- a/.github/workflows/insider-macos.yml
+++ b/.github/workflows/insider-macos.yml
@@ -35,6 +35,8 @@ jobs:
 
     steps:
       - uses: actions/checkout@v3
+        with:
+          ref: insider
 
       - name: Setup Node.js environment
         uses: actions/setup-node@v3
diff --git a/.github/workflows/insider-spearhead.yml b/.github/workflows/insider-spearhead.yml
index 26427a7..246b9e4 100644
--- a/.github/workflows/insider-spearhead.yml
+++ b/.github/workflows/insider-spearhead.yml
@@ -3,7 +3,7 @@ name: insider-spearhead
 on:
   workflow_dispatch:
   schedule:
-    - cron: '0 0 * * *'
+    - cron: '30 0 * * *'
 
 jobs:
   build:
@@ -11,10 +11,13 @@ jobs:
     env:
       OS_NAME: 'osx'
       VSCODE_ARCH: 'arm64'
+      VSCODE_LATEST: 'yes'
       VSCODE_QUALITY: 'insider'
 
     steps:
       - uses: actions/checkout@v3
+        with:
+          ref: insider
 
       - name: Setup Node.js environment
         uses: actions/setup-node@v3
@@ -24,15 +27,10 @@ jobs:
       - name: Clone VSCode repo
         run: . get_repo.sh
 
-      - name: Check PR or cron
-        run: . check_cron_or_pr.sh
-
       - name: Check existing VSCodium tags/releases
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-          NEW_RELEASE: ${{ github.event.inputs.new_release }}
         run: . check_tags.sh
-        if: env.SHOULD_DEPLOY == 'yes'
 
       - name: Compute cache key
         id: yarnCacheKey
@@ -59,9 +57,9 @@ jobs:
         if: env.SHOULD_BUILD == 'yes'
 
       - name: Update insider.json
-        if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
         run: ./update_insider.sh
         env:
           GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
           GITHUB_USERNAME: ${{ github.repository_owner }}
+        if: env.SHOULD_BUILD == 'yes'
 
diff --git a/.github/workflows/insider-windows.yml b/.github/workflows/insider-windows.yml
index 2ac657d..c12543b 100644
--- a/.github/workflows/insider-windows.yml
+++ b/.github/workflows/insider-windows.yml
@@ -37,6 +37,8 @@ jobs:
 
     steps:
       - uses: actions/checkout@v3
+        with:
+          ref: insider
 
       - name: Setup Node.js environment
         uses: actions/setup-node@v3