Skip to content

Commit

Permalink
fix: update scripting logic with new sync tree variable
Browse files Browse the repository at this point in the history
  • Loading branch information
btkostner committed Aug 29, 2023
1 parent 4138671 commit d0184ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export type Config = {
syncAuth?: string;
syncPath: string;
syncRepository: string;
syncTree?: string;
syncTree: string;
templateVariables: Record<string, string>;
};

Expand Down
3 changes: 2 additions & 1 deletion src/scripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ export async function runScript(
env: {
...process.env,
...config.templateVariables,
SYNC_BRANCH: config.syncBranch,
SYNC_BRANCH: config.syncTree,
SYNC_PATH: config.syncPath,
SYNC_REPOSITORY: config.syncRepository,
SYNC_TREE: config.syncTree,
TEMPLATE_ENV: outputFilePath,
},
silent: false,
Expand Down

0 comments on commit d0184ce

Please sign in to comment.