fix: update spearhead workflow [skip ci]

This commit is contained in:
Baptiste Augrain 2022-08-30 14:46:23 +02:00
parent 7f7f2ecdf8
commit 2c429f0778
3 changed files with 9 additions and 7 deletions

View file

@ -35,6 +35,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with:
ref: insider
- name: Setup Node.js environment - name: Setup Node.js environment
uses: actions/setup-node@v3 uses: actions/setup-node@v3

View file

@ -3,7 +3,7 @@ name: insider-spearhead
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: '0 0 * * *' - cron: '30 0 * * *'
jobs: jobs:
build: build:
@ -11,10 +11,13 @@ jobs:
env: env:
OS_NAME: 'osx' OS_NAME: 'osx'
VSCODE_ARCH: 'arm64' VSCODE_ARCH: 'arm64'
VSCODE_LATEST: 'yes'
VSCODE_QUALITY: 'insider' VSCODE_QUALITY: 'insider'
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with:
ref: insider
- name: Setup Node.js environment - name: Setup Node.js environment
uses: actions/setup-node@v3 uses: actions/setup-node@v3
@ -24,15 +27,10 @@ jobs:
- name: Clone VSCode repo - name: Clone VSCode repo
run: . get_repo.sh run: . get_repo.sh
- name: Check PR or cron
run: . check_cron_or_pr.sh
- 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'
- name: Compute cache key - name: Compute cache key
id: yarnCacheKey id: yarnCacheKey
@ -59,9 +57,9 @@ jobs:
if: env.SHOULD_BUILD == 'yes' if: env.SHOULD_BUILD == 'yes'
- name: Update insider.json - name: Update insider.json
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
run: ./update_insider.sh run: ./update_insider.sh
env: env:
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ github.repository_owner }} GITHUB_USERNAME: ${{ github.repository_owner }}
if: env.SHOULD_BUILD == 'yes'

View file

@ -37,6 +37,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with:
ref: insider
- name: Setup Node.js environment - name: Setup Node.js environment
uses: actions/setup-node@v3 uses: actions/setup-node@v3