Skip to content

Add exit

Add exit #2

Workflow file for this run

name: Ubuntu CI (push and/or release)
on:
push:
branches:
- develop
- feature/*
- features/*
- fix/*
- release/*
- doc/*
- dependabot/*
jobs:
build:
name: clang-format
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: clang-format
run: cd src && ./format-code.sh
- name: git diff
run: |
if [[ `git status --porcelain` ]]; then
echo "Code is not well formatted, boo !"
exit 1
else
echo "Code is well formatted, congrats !"
fi