mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-21 22:16:18 +00:00
git author
This commit is contained in:
parent
41c299a8ce
commit
fbf3cb8d88
1 changed files with 1 additions and 0 deletions
|
@ -50,6 +50,7 @@ async function saveFileIntoRepo(fileName: string, fileContent: string) {
|
|||
try {
|
||||
await $`git clone https://catdevnull:${GITHUB_TOKEN}@github.com/catdevnull/sepa-precios-metadata.git ${dir}`;
|
||||
await writeFile(join(dir, fileName), fileContent);
|
||||
await $`cd ${dir} && git config user.email "git@nulo.in" && git config user.name "github actions"`;
|
||||
await $`cd ${dir} && git add ${fileName}`;
|
||||
await $`cd ${dir} && git diff --staged --quiet || git commit -m "Update ${fileName}"`;
|
||||
await $`cd ${dir} && git push origin main`;
|
||||
|
|
Loading…
Reference in a new issue