We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In this code in entrypoint.php:
entrypoint.php
exec($copyGitDirectoryCommandLine, $outputLines, $exitCode); if ($exitCode === 1) { die('Command failed'); }
...the php die is only printing the message on screen, but it does not produce an exit 1, so the script still does not fail.
die
exit 1
Demonstration:
leoloso/PoP
git push
I also tried executing this (https://github.com/leoloso/monorepo-split-github-action/blob/8795fc8/entrypoint.php#L98):
exec('exit ' . $exitCode);
But it also doesn't work.
The text was updated successfully, but these errors were encountered:
monorepo-split-github-action
I searched for documentation, but didn't find anything. The GitHub Action docs only explain how to exit from entrypoint.sh.
entrypoint.sh
So I have no clue how to fix this.
Sorry, something went wrong.
Well there is an official js package..maybe we need something similar - https://github.com/actions/toolkit/tree/main/packages/core
This is rather generic Github Action issue, unrelated to this package.
If you find a better way, please send PR 👍
No branches or pull requests
In this code in
entrypoint.php
:...the php
die
is only printing the message on screen, but it does not produce anexit 1
, so the script still does not fail.Demonstration:
leoloso/PoP
to test Fix for "Since using PHP, agit push
error does not produce the run to fail" #18git push
will failI also tried executing this (https://github.com/leoloso/monorepo-split-github-action/blob/8795fc8/entrypoint.php#L98):
But it also doesn't work.
The text was updated successfully, but these errors were encountered: