Skip to content

Implement error handling in CI_git_diff.sh - #1343

Open
lassejsc wants to merge 2 commits into
devfrom
lassejsc-patch-1-1
Open

lassejsc wants to merge 2 commits into
devfrom
lassejsc-patch-1-1

Conversation

@lassejsc

@lassejsc lassejsc commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Add error handling for missing branch argument in CI script.

This should fix it failing if for example no branch was given as an argument

note that $git_diff should be empty then but I guess it's good for diagnosis if it does trigger despite successful git diff

Add error handling for git diff command failure.
Change exit status from 1 to 0 on git diff failure. This is so it actually runs, im not sure if exit 1 fails the workflow
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.

1 participant