From a6cf639887d861daf5969517fdd350d466516b1d Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Thu, 5 Nov 2026 19:21:35 +0800 Subject: [PATCH] fix(release): select desktop shell for update feed validation --- .github/workflows/publish-update-feeds.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-update-feeds.yaml b/.github/workflows/publish-update-feeds.yaml index d904674..8e702fb 100644 --- a/.github/workflows/publish-update-feeds.yaml +++ b/.github/workflows/publish-update-feeds.yaml @@ -27,6 +27,10 @@ on: gp_ref: required: true type: string + expected_gui: + required: false + default: nsh + type: string highlights: required: false type: string @@ -61,6 +65,12 @@ on: required: true default: main type: string + expected_gui: + description: Expected macOS shell in the selected update archive + required: true + default: nsh + type: choice + options: [tauri, nsh] highlights: description: Stable release highlights, one per line required: false @@ -88,7 +98,7 @@ jobs: REQUESTED_ARCHIVE: ${{ inputs.archive_name }} FEED_URL: ${{ vars.SPARKLE_FEED_URL }} EXPECTED_TEAM_ID: ${{ vars.MACOS_TEAM_ID }} - EXPECTED_GUI: tauri + EXPECTED_GUI: ${{ inputs.expected_gui }} UPDATES_WORKER_NAME: ${{ vars.UPDATES_WORKER_NAME || 'gp-updates' }} SPARKLE_VERSION: 2.9.2 UPDATE_HIGHLIGHTS: ${{ inputs.highlights }} @@ -107,6 +117,10 @@ jobs: echo "channel must be stable or snapshot" >&2 exit 1 fi + if [[ "$EXPECTED_GUI" != "tauri" && "$EXPECTED_GUI" != "nsh" ]]; then + echo "expected_gui must be tauri or nsh" >&2 + exit 1 + fi if [[ ! "$UNIX_PLATFORMS" =~ ^(linux|freebsd|openbsd)(,(linux|freebsd|openbsd))*$ ]]; then echo "unix_platforms must list published Unix targets separated by commas" >&2 exit 1