Skip to content

Commit 76c5704

Browse files
szymon-czaprackisjanc
authored andcommitted
ci: Format file check - disable exit on failure
Add `set +e` to the format_file_check.yml. to allow non-critical commands (e.g., git diff) to fail gracefully. This prevents early termination and enables custom handling of command exit codes when needed.
1 parent 99b805c commit 76c5704

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/format_file_check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
- name: Check for changes & replace
4343
id: changed
4444
run: |
45+
set +e
4546
if ! cmp -s ".clang-format-core" ".clang-format"; then
4647
echo "🔄 .clang-format has changed, updating..."
4748
diff -u .clang-format .clang-format-core

0 commit comments

Comments
 (0)