Skip to content

Deploying to production after git push #22123

Discussion options

You must be logged in to vote
creativiii:

So I can use something like this to make a request to a PHP file that runs shell_exec functions?

I’d probably just use curl, but sure!

creativiii:

Is there a specific way to ensure the HTTP request gets sent only if the previous tests pass? Do I just need to add it after my tests?

If your test step returns a non-zero exit code so the Actions runner will consider it failed, yes. A step that doesn’t set another if: condition in the step definition won’t run after a previous failed step.

If the test exit status doesn’t work I’d suggest fixing that, but you could also check for it some other way and write your own if: condition for the deploy step.

Replies: 8 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants