Skip to content

Commit 6247a95

Browse files
authored
Merge pull request #98 from Setotet/workflow_check_mt
Check TRANSLATE_ACCESS_KEY only if 'mt' is set
2 parents 9b9bbf8 + 53929a6 commit 6247a95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build-documents.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
echo "The command '$EVENT_COMMENT_BODY' is invalid."
9191
exit 1
9292
fi
93-
if ${{ env.TRANSLATE_ACCESS_KEY == '' }}; then
93+
if ${{ env.MT_X == 'mt' && env.TRANSLATE_ACCESS_KEY == '' }}; then
9494
echo "MT is disabled. Pls consult with the repo maintener."
9595
exit 1
9696
fi

0 commit comments

Comments
 (0)