Skip to content

Commit To Git Step: Skip committing when transformation script fails#2052

Open
tleed5 wants to merge 3 commits into
mainfrom
tl/fail-commit-to-git-when-script-fails
Open

Commit To Git Step: Skip committing when transformation script fails#2052
tleed5 wants to merge 3 commits into
mainfrom
tl/fail-commit-to-git-when-script-fails

Conversation

@tleed5

@tleed5 tleed5 commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

The commit to git step currently will commit any changes made regardless of the success of the transformation script, so a script could partially succeed and make some file changes, those changes will be committed even though the deployment has failed.

This change makes it so that the convention to commit files is skipped if the script exit code != 0, so a deployment failing due to the transformation script won't leave behind artifacts(commits, pull requests etc)

Tested locally against latest version of main
Screenshot 2026-06-30 at 2 08 05 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants