File tree Expand file tree Collapse file tree 1 file changed +6
-24
lines changed Expand file tree Collapse file tree 1 file changed +6
-24
lines changed Original file line number Diff line number Diff line change @@ -68,30 +68,12 @@ runs:
68
68
fi
69
69
70
70
if [ "${{ inputs.destination }}" == "device" ]; then
71
- if [ -z "${{ inputs.certificate-base64 }}" ]; then
72
- echo "Input 'certificate-base64' is required for device builds."
73
- exit 1
74
- fi
75
-
76
- if [ -z "${{ inputs.certificate-password }}" ]; then
77
- echo " Input 'certificate-password' is required for device builds."
78
- exit 1
79
- fi
80
-
81
- if [ -z "${{ inputs.provisioning-profile-base64 }}" ]; then
82
- echo "Input 'provisioning-profile-base64' is required for device builds."
83
- exit 1
84
- fi
85
-
86
- if [ -z "${{ inputs.provisioning-profile-name }}" ]; then
87
- echo "Input 'provisioning-profile-name' is required for device builds."
88
- exit 1
89
- fi
90
-
91
- if [ -z "${{ inputs.keychain-password }}" ]; then
92
- echo "Input 'keychain-password' is required for device builds."
93
- exit 1
94
- fi
71
+ for input in "certificate-base64" "certificate-password" "provisioning-profile-base64" "provisioning-profile-name" "keychain-password"; do
72
+ if [ -z "${{ inputs[input] }}" ]; then
73
+ echo "Input '$input' is required for device builds."
74
+ exit 1
75
+ fi
76
+ done
95
77
fi
96
78
shell : bash
97
79
You can’t perform that action at this time.
0 commit comments