File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -186,12 +186,12 @@ jobs:
186
186
187
187
- name : Build all docs
188
188
if : ${{ inputs.component == 'all' }}
189
- env :
190
- DOC_ACTION : ${{ (inputs.is-release && '') || 'latest-only' }}
191
189
run : |
192
190
pushd cuda_python/docs/
193
- ./build_all_docs.sh $DOC_ACTION
194
- if [[ -z "$DOC_ACTION" ]]; then
191
+ if [[ "${{ inputs.is-release }}" == "false" ]]; then
192
+ ./build_all_docs.sh latest-only
193
+ else
194
+ ./build_all_docs.sh
195
195
# At release time, we don't want to update the latest docs
196
196
rm -rf build/html/latest
197
197
fi
@@ -201,13 +201,13 @@ jobs:
201
201
202
202
- name : Build component docs
203
203
if : ${{ inputs.component != 'all' }}
204
- env :
205
- DOC_ACTION : ${{ (inputs.is-release && '') || 'latest-only' }}
206
204
run : |
207
205
COMPONENT=$(echo "${{ inputs.component }}" | tr '-' '_')
208
206
pushd ${COMPONENT}/docs/
209
- ./build_docs.sh $DOC_ACTION
210
- if [[ -z "$DOC_ACTION" ]]; then
207
+ if [[ "${{ inputs.is-release }}" == "false" ]]; then
208
+ ./build_docs.sh latest-only
209
+ else
210
+ ./build_docs.sh
211
211
# At release time, we don't want to update the latest docs
212
212
rm -rf build/html/latest
213
213
fi
You can’t perform that action at this time.
0 commit comments