8 changes: 4 additions & 4 deletions .github/workflows/insider-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:
release_version:
type: string
description: Forced release version
test_asset_builder:
generate_assets:
type: boolean
description: Test the assets builder
description: Generate assets
repository_dispatch:
types: [insider]
push:
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:

- name: Check PR or cron
env:
TEST_ASSET_BUILDER: ${{ github.event.inputs.test_asset_builder }}
GENERATE_ASSETS: ${{ github.event.inputs.generate_assets }}
run: ./check_cron_or_pr.sh

dependencies:
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:

- name: Prepare assets
run: ./prepare_assets.sh
if: env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.test_asset_builder == 'true')
if: env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.generate_assets == 'true')

- name: Release
env:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/insider-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:
release_version:
type: string
description: Forced release version
test_asset_builder:
generate_assets:
type: boolean
description: Test the assets builder
description: Generate assets
repository_dispatch:
types: [insider]
push:
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:

- name: Check PR or cron
env:
TEST_ASSET_BUILDER: ${{ github.event.inputs.test_asset_builder }}
GENERATE_ASSETS: ${{ github.event.inputs.generate_assets }}
run: . check_cron_or_pr.sh

- name: Check existing VSCodium tags/releases
Expand All @@ -86,7 +86,7 @@ jobs:
CERTIFICATE_OSX_PASSWORD: ${{ secrets.CERTIFICATE_OSX_PASSWORD }}
CERTIFICATE_OSX_ID: ${{ secrets.CERTIFICATE_OSX_ID }}
run: ./prepare_assets.sh
if: env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.test_asset_builder == 'true')
if: env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.generate_assets == 'true')

- name: Release
env:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/insider-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:
release_version:
type: string
description: Forced release version
test_asset_builder:
generate_assets:
type: boolean
description: Test the assets builder
description: Generate assets
repository_dispatch:
types: [insider]
push:
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:

- name: Check PR or cron
env:
TEST_ASSET_BUILDER: ${{ github.event.inputs.test_asset_builder }}
GENERATE_ASSETS: ${{ github.event.inputs.generate_assets }}
run: ./check_cron_or_pr.sh

- name: Check existing VSCodium tags/releases
Expand All @@ -91,7 +91,7 @@ jobs:

- name: Prepare assets
run: ./prepare_assets.sh
if: env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.test_asset_builder == 'true')
if: env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.generate_assets == 'true')

- name: Release
env:
Expand Down
27 changes: 23 additions & 4 deletions .github/workflows/stable-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ on:
force_version:
type: boolean
description: Force update version
test_asset_builder:
generate_assets:
type: boolean
description: Test the assets builder
description: Generate assets
checkout_pr:
type: string
description: Checkout PR
repository_dispatch:
types: [stable]
push:
Expand Down Expand Up @@ -45,11 +48,13 @@ jobs:
ref: ${{ env.GITHUB_BRANCH }}

- name: Clone VSCode repo
env:
PULL_REQUEST_ID: ${{ github.event.inputs.checkout_pr }}
run: ./get_repo.sh

- name: Check PR or cron
env:
TEST_ASSET_BUILDER: ${{ github.event.inputs.test_asset_builder }}
GENERATE_ASSETS: ${{ github.event.inputs.generate_assets }}
run: ./check_cron_or_pr.sh

dependencies:
Expand Down Expand Up @@ -78,6 +83,8 @@ jobs:
ref: ${{ env.GITHUB_BRANCH }}

- name: Clone VSCode repo
# env:
# PULL_REQUEST_ID: ${{ github.event.inputs.checkout_pr }}
run: ./get_repo.sh

- uses: docker/setup-qemu-action@v3
Expand Down Expand Up @@ -133,8 +140,12 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
ref: ${{ env.GITHUB_BRANCH }}

- name: Clone VSCode repo
env:
PULL_REQUEST_ID: ${{ github.event.inputs.checkout_pr }}
run: ./get_repo.sh

- name: Install GH
Expand All @@ -161,7 +172,15 @@ jobs:

- name: Prepare assets
run: ./prepare_assets.sh
if: env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.test_asset_builder == 'true')
if: env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.generate_assets == 'true')

- name: Upload assets
uses: actions/upload-artifact@v3
with:
name: assets
path: ./assets/
retention-days: 3
if: env.SHOULD_BUILD == 'yes' && github.event.inputs.generate_assets == 'true'

- name: Release
env:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/stable-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:
force_version:
type: boolean
description: Force update version
test_asset_builder:
generate_assets:
type: boolean
description: Test the assets builder
description: Generate assets
repository_dispatch:
types: [stable]
push:
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:

- name: Check PR or cron
env:
TEST_ASSET_BUILDER: ${{ github.event.inputs.test_asset_builder }}
GENERATE_ASSETS: ${{ github.event.inputs.generate_assets }}
run: . check_cron_or_pr.sh

- name: Check existing VSCodium tags/releases
Expand All @@ -81,7 +81,7 @@ jobs:
CERTIFICATE_OSX_PASSWORD: ${{ secrets.CERTIFICATE_OSX_PASSWORD }}
CERTIFICATE_OSX_ID: ${{ secrets.CERTIFICATE_OSX_ID }}
run: ./prepare_assets.sh
if: env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.test_asset_builder == 'true')
if: env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.generate_assets == 'true')

- name: Release
env:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/stable-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:
force_version:
type: boolean
description: Force update version
test_asset_builder:
generate_assets:
type: boolean
description: Test the assets builder
description: Generate assets
repository_dispatch:
types: [stable]
push:
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:

- name: Check PR or cron
env:
TEST_ASSET_BUILDER: ${{ github.event.inputs.test_asset_builder }}
GENERATE_ASSETS: ${{ github.event.inputs.generate_assets }}
run: ./check_cron_or_pr.sh

- name: Check existing VSCodium tags/releases
Expand All @@ -88,7 +88,7 @@ jobs:

- name: Prepare assets
run: ./prepare_assets.sh
if: env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.test_asset_builder == 'true')
if: env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.generate_assets == 'true')

- name: Release
env:
Expand Down
4 changes: 2 additions & 2 deletions check_cron_or_pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ elif [[ "${GITHUB_EVENT_NAME}" == "push" ]]; then
export SHOULD_BUILD="yes"
export SHOULD_DEPLOY="no"
elif [[ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]]; then
if [[ "${TEST_ASSET_BUILDER}" == "true" ]]; then
echo "It's testing the assets builder"
if [[ "${GENERATE_ASSETS}" == "true" ]]; then
echo "It will generate the assets"

export SHOULD_BUILD="yes"
export SHOULD_DEPLOY="no"
Expand Down
11 changes: 11 additions & 0 deletions get_repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ if [[ "${CI_BUILD}" != "no" ]]; then
git config --global --add safe.directory "/__w/$( echo "${GITHUB_REPOSITORY}" | awk '{print tolower($0)}' )"
fi

if [[ -n "${PULL_REQUEST_ID}" ]]; then
BRANCH_NAME=$( git rev-parse --abbrev-ref HEAD )

git config --global user.email "$( echo "${GITHUB_USERNAME}" | awk '{print tolower($0)}' )-ci@not-real.com"
git config --global user.name "${GITHUB_USERNAME} CI"
git fetch --unshallow
git fetch origin "pull/${PULL_REQUEST_ID}/head"
git checkout FETCH_HEAD
git merge --no-edit "origin/${BRANCH_NAME}"
fi

if [[ -z "${RELEASE_VERSION}" ]]; then
if [[ "${VSCODE_LATEST}" == "yes" ]] || [[ ! -f "${VSCODE_QUALITY}.json" ]]; then
UPDATE_INFO=$( curl --silent --fail "https://update.code.visualstudio.com/api/update/darwin/${VSCODE_QUALITY}/0000000000000000000000000000000000000000" )
Expand Down
4 changes: 2 additions & 2 deletions stable.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"tag": "1.85.1",
"commit": "0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2"
"tag": "1.85.2",
"commit": "8b3775030ed1a69b13e4f4c628c612102e30a681"
}