From 07353a20064f7395fa35fa757ad4eae84a30f998 Mon Sep 17 00:00:00 2001 From: Mahmoud Mazouz Date: Tue, 7 May 2024 12:11:15 +0200 Subject: [PATCH] fix: Pull before push in publish-crates-homebrew (#132) --- dist/publish-crates-homebrew-main.js | 1 + src/publish-crates-homebrew.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/publish-crates-homebrew-main.js b/dist/publish-crates-homebrew-main.js index e30871f..1350351 100644 --- a/dist/publish-crates-homebrew-main.js +++ b/dist/publish-crates-homebrew-main.js @@ -127767,6 +127767,7 @@ async function main(input) { (0,_command__WEBPACK_IMPORTED_MODULE_4__.sh)("brew autoremove"); } if (input.liveRun) { + (0,_command__WEBPACK_IMPORTED_MODULE_4__.sh)(`git pull ${tapUrl} --rebase`, { cwd: tapPath }); (0,_command__WEBPACK_IMPORTED_MODULE_4__.sh)(`git push ${tapUrl}`, { cwd: tapPath }); } cleanup(input); diff --git a/src/publish-crates-homebrew.ts b/src/publish-crates-homebrew.ts index 070c5b6..4454d4a 100644 --- a/src/publish-crates-homebrew.ts +++ b/src/publish-crates-homebrew.ts @@ -128,6 +128,7 @@ export async function main(input: Input) { } if (input.liveRun) { + sh(`git pull ${tapUrl} --rebase`, { cwd: tapPath }); sh(`git push ${tapUrl}`, { cwd: tapPath }); }