Skip to content

Commit

Permalink
Fix uncommitted files after adding SafeQL packages
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed Oct 14, 2023
1 parent 8617afb commit 1454a22
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docker/clone-and-preflight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,20 @@ if (projectUsesPostgresql) {
await executeCommand('pnpm add @ts-safeql/eslint-plugin libpg-query', {
cwd: projectPath,
});

// Commit packages.json and pnpm-lock.yaml changes to
// avoid failing "All changes committed to Git" check
await executeCommand(
'git config user.email github-actions[bot]@users.noreply.github.com',
{ cwd: projectPath },
);
await executeCommand('git config user.name github-actions[bot]', {
cwd: projectPath,
});
await executeCommand(
'git commit --all --message Add\\ SafeSQL\\ for\\ Windows',
{ cwd: projectPath },
);
}
}

Expand Down

0 comments on commit 1454a22

Please sign in to comment.