From 65edd99c642701fd2533cdc78fa8634d698653fc Mon Sep 17 00:00:00 2001 From: Ryan Foster Date: Sat, 9 Mar 2024 13:56:14 -0500 Subject: [PATCH] CI: Use array to build options string for Sparkle --- .github/actions/sparkle-appcast/action.yaml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/actions/sparkle-appcast/action.yaml b/.github/actions/sparkle-appcast/action.yaml index 4306d5f32..9cc375536 100644 --- a/.github/actions/sparkle-appcast/action.yaml +++ b/.github/actions/sparkle-appcast/action.yaml @@ -150,15 +150,18 @@ runs: print -n '${{ inputs.sparklePrivateKey }}' >> eddsa_private.key local feed_url='${{ steps.builds.outputs.feedUrl }}' local arch=${${${(s:_:)feed_url:t}[2]}//x86/x86_64} + local sparkle_options=( + --verbose + --ed-key-file eddsa_private.key + --download-url-prefix '${{ inputs.urlPrefix }}/' + --full-release-notes-url "${feed_url//updates_*/notes_${{ inputs.channel }}.html}" + --maximum-versions 0 + --maximum-deltas '${{ inputs.count }}' + --channel '${{ inputs.channel }}' + ) Sparkle/bin/generate_appcast \ - --verbose \ - --ed-key-file eddsa_private.key \ - --download-url-prefix '${{ inputs.urlPrefix }}/' \ - --full-release-notes-url "${feed_url//updates_*/notes_${{ inputs.channel }}.html}" \ - --maximum-versions 0 \ - --maximum-deltas ${{ inputs.count }} \ - --channel '${{ inputs.channel }}' \ + ${sparkle_options} \ builds local -a deltas=(builds/*.delta(N))