fix(ci): properly check release condition

https://github.com/actions/runner/issues/1483
This commit is contained in:
pylixonly 2024-11-09 16:29:20 +08:00
parent 0b929c9bf0
commit a71b1b9a7d

View file

@ -1,5 +1,5 @@
name: Deploy name: Deploy
run-name: ${{ github.event.inputs.release == true && 'Release' || 'Build' }} for ${{ github.event.inputs.ipa_url }} run-name: ${{ github.event.inputs.release == 'true' && 'Release' || 'Build' }} for ${{ github.event.inputs.ipa_url }}
on: on:
workflow_dispatch: workflow_dispatch:
@ -150,7 +150,7 @@ jobs:
path: ${{ github.workspace }}/${{ env.APP_NAME }}.ipa path: ${{ github.workspace }}/${{ env.APP_NAME }}.ipa
release-app: release-app:
if: ${{ github.event.inputs.release == true }} if: ${{ github.event.inputs.release == 'true' }}
runs-on: macos-14 runs-on: macos-14
needs: build-ipa needs: build-ipa
permissions: permissions:
@ -197,7 +197,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
app-repo: app-repo:
if: ${{ github.event.inputs.release == true }} if: ${{ github.event.inputs.release == 'true' }}
continue-on-error: true continue-on-error: true
runs-on: macos-14 runs-on: macos-14
needs: release-app needs: release-app