Skip to content

Commit 72872d7

Browse files
committed
fix: make gha linter happy
1 parent fd98a53 commit 72872d7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/pull_request.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,14 @@ jobs:
108108
biome lint --write
109109
110110
- name: Check for changes
111-
run: git status | grep -q "nothing to commit (working directory clean)" && echo "Branch is clean." || (echo "There are uncommitted changes." && exit 1)
111+
run: |
112+
clean=$(git status | grep "nothing to commit (working directory clean)")
113+
if [ -z "$clean" ]; then
114+
echo There are uncommitted changes.
115+
exit 1
116+
else
117+
echo Branch is clean.
118+
fi
112119
113120
test:
114121
name: Test

0 commit comments

Comments
 (0)