mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-26 16:36:14 -05:00
fix(release): select desktop shell for update feed validation
This commit is contained in:
1 file changed
+15
-1
@@ -27,6 +27,10 @@ on:
|
|||||||
gp_ref:
|
gp_ref:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
expected_gui:
|
||||||
|
required: false
|
||||||
|
default: nsh
|
||||||
|
type: string
|
||||||
highlights:
|
highlights:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@@ -61,6 +65,12 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
default: main
|
default: main
|
||||||
type: string
|
type: string
|
||||||
|
expected_gui:
|
||||||
|
description: Expected macOS shell in the selected update archive
|
||||||
|
required: true
|
||||||
|
default: nsh
|
||||||
|
type: choice
|
||||||
|
options: [tauri, nsh]
|
||||||
highlights:
|
highlights:
|
||||||
description: Stable release highlights, one per line
|
description: Stable release highlights, one per line
|
||||||
required: false
|
required: false
|
||||||
@@ -88,7 +98,7 @@ jobs:
|
|||||||
REQUESTED_ARCHIVE: ${{ inputs.archive_name }}
|
REQUESTED_ARCHIVE: ${{ inputs.archive_name }}
|
||||||
FEED_URL: ${{ vars.SPARKLE_FEED_URL }}
|
FEED_URL: ${{ vars.SPARKLE_FEED_URL }}
|
||||||
EXPECTED_TEAM_ID: ${{ vars.MACOS_TEAM_ID }}
|
EXPECTED_TEAM_ID: ${{ vars.MACOS_TEAM_ID }}
|
||||||
EXPECTED_GUI: tauri
|
EXPECTED_GUI: ${{ inputs.expected_gui }}
|
||||||
UPDATES_WORKER_NAME: ${{ vars.UPDATES_WORKER_NAME || 'gp-updates' }}
|
UPDATES_WORKER_NAME: ${{ vars.UPDATES_WORKER_NAME || 'gp-updates' }}
|
||||||
SPARKLE_VERSION: 2.9.2
|
SPARKLE_VERSION: 2.9.2
|
||||||
UPDATE_HIGHLIGHTS: ${{ inputs.highlights }}
|
UPDATE_HIGHLIGHTS: ${{ inputs.highlights }}
|
||||||
@@ -107,6 +117,10 @@ jobs:
|
|||||||
echo "channel must be stable or snapshot" >&2
|
echo "channel must be stable or snapshot" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
if [[ ! "$UNIX_PLATFORMS" =~ ^(linux|freebsd|openbsd)(,(linux|freebsd|openbsd))*$ ]]; then
|
||||||
echo "unix_platforms must list published Unix targets separated by commas" >&2
|
echo "unix_platforms must list published Unix targets separated by commas" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in new issue
Block a user