ci(macos): honour app_store_upload=false on a Gitea dispatch

Gitea passes a dispatch boolean as a real false, so
`inputs.app_store_upload || 'true'` read it as true and a rebuild would
have re-uploaded a build number App Store Connect already holds. format()
keeps it as the string 'false'; a tag push still uploads.
This commit is contained in:
jwinterm
2026-10-26 23:41:33 -04:00
parent d49ebdf935
commit 6bd8f64ed7
+3 -1
View File
@@ -67,7 +67,9 @@ jobs:
APP_MACOS_TYPE: cakewallet
# A tag push builds both lanes and uploads; a dispatch says what it wants.
LANES: ${{ github.event.inputs.lanes || 'both' }}
APP_STORE_UPLOAD: ${{ github.event.inputs.app_store_upload || 'true' }}
# Gitea hands a dispatch boolean over as a real false, which `|| 'true'`
# would turn back into true; format() keeps it as the string 'false'.
APP_STORE_UPLOAD: ${{ github.event_name == 'workflow_dispatch' && format('{0}', github.event.inputs.app_store_upload) || 'true' }}
KEYCHAIN: ${{ github.workspace }}/../hashbags-macos.keychain-db
LANG: en_US.UTF-8
LC_ALL: en_US.UTF-8