Skip to content

Commit

Permalink
add github workspace to form the root folder path correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
lyqht committed May 22, 2023
1 parent bb3de5e commit 7fed36c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import path from 'path';
const authKey = process.env.deepl_api_key as string;
const translator = new deepl.Translator(authKey);
const targetLanguages = process.env.target_languages?.split(',') as string[];
const inputFilePath = process.env.input_file_path as string;
const outputFileNamePrefix = process.env.output_file_name_prefix as string;
const inputFilePath = path.join(process.env.GITHUB_WORKSPACE as string, process.env.input_file_path as string);
const outputFileNamePrefix = path.join(process.env.GITHUB_WORKSPACE as string,process.env.output_file_name_prefix as string);
const termsToIgnoreForTranslation = process.env.ignore_terms?.split(',') || [] as string[];
const startTagForNoTranslate = process.env.no_translate_start_tag as string;
const endTagForNoTranslate = process.env.no_translate_end_tag as string;
Expand Down

0 comments on commit 7fed36c

Please sign in to comment.