Skip to content

Commit

Permalink
Revert "Fail pipeline when git push errors (#34)" (#38)
Browse files Browse the repository at this point in the history
This reverts commit f258435.
  • Loading branch information
TomasVotruba committed Oct 13, 2022
1 parent f258435 commit 889abd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions entrypoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,7 @@
note($message);

exec("git commit --message '{$commitMessage}'");
exec('git push --quiet origin ' . $config->getBranch(), $outputLines, $exitCode);

if ($exitCode > 0) {
error('Failed to push changes!');
exit($exitCode);
}
exec('git push --quiet origin ' . $config->getBranch());
} else {
note('No files to change');
}
Expand Down
2 changes: 1 addition & 1 deletion tests/packages/some-package/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

This repository was split thanks to [symplify/monorepo-split-github-action](https://github.com/symplify/monorepo-split-github-action)!

Change me again, and again, and again
Change me again

0 comments on commit 889abd9

Please sign in to comment.