File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,12 @@ jobs:
13
13
steps :
14
14
- name : Check environment
15
15
uses : actions/github-script@v7
16
- if : ${{ !(env.AZURE_OPENAI_API_KEY && env.AZURE_OPENAI_ENDPOINT) }}
17
16
with :
18
17
script : |
19
- core.setFailed('Missing one or more secrets: ' + Object.keys(${{ toJson(env) }}).join(', '));
18
+ const env = ${{ toJson(env) }}
19
+ Object.values(env).some(v => v.length === 0) &&
20
+ core.setFailed('Missing one or more secrets: ' + Object.keys(env).join(', '));
21
+
20
22
- name : Check out repository code
21
23
uses : actions/checkout@v4
22
24
with :
@@ -42,10 +44,12 @@ jobs:
42
44
steps :
43
45
- name : Check environment
44
46
uses : actions/github-script@v7
45
- if : ${{ !(env.AWS_ACCESS_KEY_ID && env.AWS_SECRET_ACCESS_KEY) }}
46
47
with :
47
48
script : |
48
- core.setFailed('Missing one or more secrets: ' + Object.keys(${{ toJson(env) }}).join(', '));
49
+ const env = ${{ toJson(env) }}
50
+ Object.values(env).some(v => v.length === 0) &&
51
+ core.setFailed('Missing one or more secrets: ' + Object.keys(env).join(', '));
52
+
49
53
- name : Check out repository code
50
54
uses : actions/checkout@v4
51
55
with :
You can’t perform that action at this time.
0 commit comments