Automatically Sync Git on All Runs
In certain situations, such as when webhooks cannot be configured, Spacelift does not reliably detect new Git commits. As a result, manually triggered runs may execute against an outdated commit.
To avoid this, a task or run should always initiate a Git sync to ensure the stack is operating against the latest commit on its tracked branch. This would provide predictable behaviour, particularly for environments where webhook delivery is unreliable or not possible.
Stacks that must remain pinned to stable commits could instead track a tag, as described here: https://feedback.spacelift.io/p/support-for-configuring-a-spacelift-stack-to-track-a-git
- Workaround
- Problem
Log in to comment and vote
Comments1
Black Breeze
Dec 16, 2025
Can you please explain why would it not be possible to set up webhooks? I’d rather solve the problem at the source than institutionalize a workaround.