🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
👷 ci(desktop): read the overlay repository from a variable instead of hardcoding (#18759)
Innei2325c093c684
diff --git a/.github/actions/desktop-build-setup/action.yml b/.github/actions/desktop-build-setup/action.ymlindex f8f1d12c7a4..be662b27b1c 100644--- a/.github/actions/desktop-build-setup/action.yml+++ b/.github/actions/desktop-build-setup/action.yml@@ -6,9 +6,11 @@ inputs:description: Node.js versionrequired: truecloud-repository:- description: Cloud repository to overlay for commercial desktop builds+ description: >-+ Overlay repository (owner/name) for commercial desktop builds — pass the+ OVERLAY_REPOSITORY repository variable; deliberately no hardcoded default.required: false- default: lobehub/lobehub-cloud+ default: ''cloud-ref:description: Optional Cloud repository refrequired: false@@ -37,6 +39,8 @@ runs:CLOUD_TOKEN: ${{ inputs.cloud-token }}run: |set -euo pipefail+ # Fail loudly rather than silently shipping an OSS-only commercial build.+ : "${CLOUD_REPOSITORY:?cloud-repository input is empty — pass the OVERLAY_REPOSITORY repository variable}"cloud_root="$(cd "$GITHUB_WORKSPACE/.." && pwd)"cloud_checkout="$RUNNER_TEMP/lobehub-cloud"diff --git a/.github/workflows/manual-build-desktop.yml b/.github/workflows/manual-build-desktop.ymlindex 38541282d1f..9404fe8c8d2 100644--- a/.github/workflows/manual-build-desktop.yml+++ b/.github/workflows/manual-build-desktop.yml@@ -104,6 +104,7 @@ jobs:- name: Setup build environmentuses: ./.github/actions/desktop-build-setupwith:+ cloud-repository: ${{ vars.OVERLAY_REPOSITORY }}cloud-token: ${{ secrets.LOBEHUB_CLOUD_TOKEN }}node-version: ${{ env.NODE_VERSION }}@@ -183,6 +184,7 @@ jobs:- name: Setup build environmentuses: ./.github/actions/desktop-build-setupwith:+ cloud-repository: ${{ vars.OVERLAY_REPOSITORY }}cloud-token: ${{ secrets.LOBEHUB_CLOUD_TOKEN }}node-version: ${{ env.NODE_VERSION }}@@ -228,6 +230,7 @@ jobs:- name: Setup build environmentuses: ./.github/actions/desktop-build-setupwith:+ cloud-repository: ${{ vars.OVERLAY_REPOSITORY }}cloud-token: ${{ secrets.LOBEHUB_CLOUD_TOKEN }}node-version: ${{ env.NODE_VERSION }}diff --git a/.github/workflows/pr-build-desktop.yml b/.github/workflows/pr-build-desktop.ymlindex 7ff3a888a3b..f0ad9c5fa8d 100644--- a/.github/workflows/pr-build-desktop.yml+++ b/.github/workflows/pr-build-desktop.yml@@ -106,6 +106,7 @@ jobs:- name: Setup build environmentuses: ./.github/actions/desktop-build-setupwith:+ cloud-repository: ${{ vars.OVERLAY_REPOSITORY }}cloud-token: ${{ secrets.LOBEHUB_CLOUD_TOKEN }}node-version: 24.11.1diff --git a/.github/workflows/release-desktop-beta.yml b/.github/workflows/release-desktop-beta.ymlindex ef1a292c689..ff0025d73c1 100644--- a/.github/workflows/release-desktop-beta.yml+++ b/.github/workflows/release-desktop-beta.yml@@ -58,11 +58,13 @@ jobs:id: cloud-refif: steps.check.outputs.is_beta == 'true'env:+ CLOUD_REPOSITORY: ${{ vars.OVERLAY_REPOSITORY }}CLOUD_TOKEN: ${{ secrets.LOBEHUB_CLOUD_TOKEN }}run: |set -euo pipefail+ : "${CLOUD_REPOSITORY:?OVERLAY_REPOSITORY repository variable is not set}"# checkout persist-credentials extraheader would send GITHUB_TOKEN and 404 the private cloud repo- cloud_ref=$(git -c http.https://github.com/.extraheader= ls-remote "https://x-access-token:${CLOUD_TOKEN}@github.com/lobehub/lobehub-cloud.git" HEAD | cut -f1)+ cloud_ref=$(git -c http.https://github.com/.extraheader= ls-remote "https://x-access-token:${CLOUD_TOKEN}@github.com/${CLOUD_REPOSITORY}.git" HEAD | cut -f1)if [[ ! "$cloud_ref" =~ ^[0-9a-f]{40}$ ]]; thenecho "Unable to resolve Cloud revision"exit 1@@ -113,6 +115,7 @@ jobs:uses: ./.github/actions/desktop-build-setupwith:cloud-ref: ${{ needs.check-beta.outputs.cloud_ref }}+ cloud-repository: ${{ vars.OVERLAY_REPOSITORY }}cloud-token: ${{ secrets.LOBEHUB_CLOUD_TOKEN }}node-version: ${{ env.NODE_VERSION }}diff --git a/.github/workflows/release-desktop-canary.yml b/.github/workflows/release-desktop-canary.ymlindex 940601c780e..1246fddfe9e 100644--- a/.github/workflows/release-desktop-canary.yml+++ b/.github/workflows/release-desktop-canary.yml@@ -127,11 +127,13 @@ jobs:id: cloud-refif: steps.check.outputs.should_build == 'true'env:+ CLOUD_REPOSITORY: ${{ vars.OVERLAY_REPOSITORY }}CLOUD_TOKEN: ${{ secrets.LOBEHUB_CLOUD_TOKEN }}run: |set -euo pipefail+ : "${CLOUD_REPOSITORY:?OVERLAY_REPOSITORY repository variable is not set}"# checkout persist-credentials extraheader would send GITHUB_TOKEN and 404 the private cloud repo- cloud_ref=$(git -c http.https://github.com/.extraheader= ls-remote "https://x-access-token:${CLOUD_TOKEN}@github.com/lobehub/lobehub-cloud.git" HEAD | cut -f1)+ cloud_ref=$(git -c http.https://github.com/.extraheader= ls-remote "https://x-access-token:${CLOUD_TOKEN}@github.com/${CLOUD_REPOSITORY}.git" HEAD | cut -f1)if [[ ! "$cloud_ref" =~ ^[0-9a-f]{40}$ ]]; thenecho "Unable to resolve Cloud revision"exit 1@@ -249,6 +251,7 @@ jobs:uses: ./.github/actions/desktop-build-setupwith:cloud-ref: ${{ needs.calculate-version.outputs.cloud_ref }}+ cloud-repository: ${{ vars.OVERLAY_REPOSITORY }}cloud-token: ${{ secrets.LOBEHUB_CLOUD_TOKEN }}node-version: ${{ env.NODE_VERSION }}diff --git a/.github/workflows/release-desktop-renderer-ota.yml b/.github/workflows/release-desktop-renderer-ota.ymlindex d69dd026245..24a1554a46d 100644--- a/.github/workflows/release-desktop-renderer-ota.yml+++ b/.github/workflows/release-desktop-renderer-ota.yml@@ -92,6 +92,7 @@ jobs:uses: ./.github/actions/desktop-build-setupwith:cloud-ref: ${{ steps.base.outputs.cloud_ref }}+ cloud-repository: ${{ vars.OVERLAY_REPOSITORY }}cloud-token: ${{ secrets.LOBEHUB_CLOUD_TOKEN }}node-version: ${{ env.NODE_VERSION }}diff --git a/.github/workflows/release-desktop-stable.yml b/.github/workflows/release-desktop-stable.ymlindex 779f7de5760..6506f179a42 100644--- a/.github/workflows/release-desktop-stable.yml+++ b/.github/workflows/release-desktop-stable.yml@@ -124,11 +124,13 @@ jobs:id: cloud-refif: steps.check.outputs.is_stable == 'true'env:+ CLOUD_REPOSITORY: ${{ vars.OVERLAY_REPOSITORY }}CLOUD_TOKEN: ${{ secrets.LOBEHUB_CLOUD_TOKEN }}run: |set -euo pipefail+ : "${CLOUD_REPOSITORY:?OVERLAY_REPOSITORY repository variable is not set}"# checkout persist-credentials extraheader would send GITHUB_TOKEN and 404 the private cloud repo- cloud_ref=$(git -c http.https://github.com/.extraheader= ls-remote "https://x-access-token:${CLOUD_TOKEN}@github.com/lobehub/lobehub-cloud.git" HEAD | cut -f1)+ cloud_ref=$(git -c http.https://github.com/.extraheader= ls-remote "https://x-access-token:${CLOUD_TOKEN}@github.com/${CLOUD_REPOSITORY}.git" HEAD | cut -f1)if [[ ! "$cloud_ref" =~ ^[0-9a-f]{40}$ ]]; thenecho "Unable to resolve Cloud revision"exit 1@@ -206,6 +208,7 @@ jobs:uses: ./.github/actions/desktop-build-setupwith:cloud-ref: ${{ needs.check-stable.outputs.cloud_ref }}+ cloud-repository: ${{ vars.OVERLAY_REPOSITORY }}cloud-token: ${{ secrets.LOBEHUB_CLOUD_TOKEN }}node-version: ${{ env.NODE_VERSION }}