Try again

This commit is contained in:
mitchellhamilton
2019-08-14 21:19:49 +10:00
parent 65f52cee82
commit 99bc8238f9
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -123,21 +123,21 @@ async function execWithOutput(
let cmd = await execWithOutput("git", [
"merge-base",
"changeset-release",
github.context.ref
github.context.sha
]);
const divergedAt = cmd.stdout.trim();
let diffOutput = await execWithOutput("git", [
"diff",
"--name-only",
`${divergedAt}...${github.context.ref}`
`${divergedAt}...${github.context.sha}`
]);
const files = diffOutput.stdout.trim();
shouldBump = files.includes(".changeset");
console.log("checked if new changesets should be added " + shouldBump);
}
if (shouldBump) {
await exec("git", ["reset", "--hard", github.context.ref]);
await exec("git", ["reset", "--hard", github.context.sha]);
await exec("yarn", ["changeset", "bump"]);
await exec("git", ["add", "."]);
await exec("git", ["commit", "-m", "Version Packages"]);