Skip to content

Commit

Permalink
EMOJIS
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanDuPont committed Mar 28, 2024
1 parent 83427ff commit f7017f5
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: 🚀 Checkout
uses: actions/checkout@v4
- name: Setup Bazel
- name: 🌿 Setup Bazel
uses: bazel-contrib/[email protected]
with:
bazelisk-cache: true
Expand All @@ -24,15 +24,16 @@ jobs:
build --color=yes
build --show_timestamps
- run: touch /tmp/pre_fmt
- name: Format Repository
- name: 🧹 Format Repository
run: bazel run //:format
- name: Detect Diff
- name: 👀 Detect Diff
run: |
set +x
formatted_files=$(find ./config ./src ./tools -newer /tmp/pre_fmt | wc -l)
formatted_files=$(find ./config ./src ./tools -newer /tmp/pre_fmt)
num_formatted_files=$(echo $formatted_files | wc -l)
if [ "$formatted_files" -gt 0 ]; then
echo "Bad code detected! The following files would be reformatted:"
if [ "$num_formatted_files" -gt 0 ]; then
echo "❌🔥 Bad code detected! The following files would be reformatted:"
echo "$formatted_files"
exit 1
fi

0 comments on commit f7017f5

Please sign in to comment.