Skip to content

Commit c575c42

Browse files
authored
Update ci-internal.yml
1 parent 1be9561 commit c575c42

1 file changed

Lines changed: 36 additions & 16 deletions

File tree

.github/workflows/ci-internal.yml

Lines changed: 36 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -55,25 +55,45 @@ jobs:
5555

5656
- name: Check Secrets
5757
run: |
58-
required_secrets=("UNITY_ACCOUNT_USER" "UNITY_ACCOUNT_PASS" "EMAIL_PASS")
59-
for secret in "${required_secrets[@]}"; do
60-
if [ -z "${{ secrets[secret] }}" ]; then
61-
echo "Error: Secret $secret is empty or not defined."
62-
else
63-
echo "Secret $secret is set."
64-
fi
65-
done
58+
if [ -z "${{ secrets.UNITY_ACCOUNT_USER }}" ]; then
59+
echo "Error: Secret UNITY_ACCOUNT_USER is empty or not defined."
60+
exit 1
61+
else
62+
echo "Secret UNITY_ACCOUNT_USER is set."
63+
fi
64+
if [ -z "${{ secrets.UNITY_ACCOUNT_PASS }}" ]; then
65+
echo "Error: Secret UNITY_ACCOUNT_PASS is empty or not defined."
66+
exit 1
67+
else
68+
echo "Secret UNITY_ACCOUNT_PASS is set."
69+
fi
70+
if [ -z "${{ secrets.EMAIL_PASS }}" ]; then
71+
echo "Error: Secret EMAIL_PASS is empty or not defined."
72+
exit 1
73+
else
74+
echo "Secret EMAIL_PASS is set."
75+
fi
6676
6777
- name: Check Inputs
6878
run: |
69-
required_secrets=("UNITY_ACCOUNT_USER" "UNITY_ACCOUNT_PASS" "EMAIL_PASS")
70-
for secret in "${required_secrets[@]}"; do
71-
if [ -z "${{ inputs[secret] }}" ]; then
72-
echo "Error: Input $secret is empty or not defined."
73-
else
74-
echo "Input $secret is set."
75-
fi
76-
done
79+
if [ -z "${{ inputs.UNITY_ACCOUNT_USER }}" ]; then
80+
echo "Error: Input UNITY_ACCOUNT_USER is empty or not defined."
81+
exit 1
82+
else
83+
echo "Input UNITY_ACCOUNT_USER is set."
84+
fi
85+
if [ -z "${{ inputs.UNITY_ACCOUNT_PASS }}" ]; then
86+
echo "Error: Input UNITY_ACCOUNT_PASS is empty or not defined."
87+
exit 1
88+
else
89+
echo "Input UNITY_ACCOUNT_PASS is set."
90+
fi
91+
if [ -z "${{ inputs.EMAIL_PASS }}" ]; then
92+
echo "Error: Input EMAIL_PASS is empty or not defined."
93+
exit 1
94+
else
95+
echo "Input EMAIL_PASS is set."
96+
fi
7797
7898
- name: Install node package, `unity-license-activate`
7999
run: npm install --global https://github.com/sierpinskid/unity-license-activate

0 commit comments

Comments
 (0)