diff --git a/entrypoint.php b/entrypoint.php index 13fbbc4..11d5c3a 100755 --- a/entrypoint.php +++ b/entrypoint.php @@ -115,7 +115,12 @@ note($message); exec("git commit --message '{$commitMessage}'"); - exec('git push --quiet origin ' . $config->getBranch()); + exec('git push --quiet origin ' . $config->getBranch(), $outputLines, $exitCode); + + if ($exitCode > 0) { + error('Failed to push changes!'); + exit($exitCode); + } } else { note('No files to change'); } diff --git a/tests/packages/some-package/README.md b/tests/packages/some-package/README.md index 2982664..56a0f46 100644 --- a/tests/packages/some-package/README.md +++ b/tests/packages/some-package/README.md @@ -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 +Change me again, and again, and again