Skip to content
Discussion options

You must be logged in to vote

Hi @Rod-at-DOH,

Great question .... you're definitely not alone in wondering about this!

By default, GitHub Actions doesn't include built-in support for automatic rollbacks after a failed deployment. However, it is absolutely possible to implement automated rollbacks yourself using some custom logic in your workflow.

Here’s how it generally works:

🛠️ Basic Concept

You can structure your workflow to:

Deploy your application.

Run health checks or validations (e.g., API tests, smoke tests).

If those fail, trigger a rollback step to restore the previous version.

This is usually done by:

Storing deployment metadata (e.g., previous commit SHA, version number, or artifacts).

Using a deployment t…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Rod-at-DOH
Comment options

Answer selected by Rod-at-DOH

This comment was marked as off-topic.

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
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question Ask and answer questions about GitHub features and usage Workflow Configuration Topics about workflow files, YAML setup, job dependencies, and general workflow configuration issues Misc General discussions about GitHub Actions that don't fit other found themes.
4 participants