Skip to content

Commit a713564

Browse files
committed
simplify workflow
1 parent b6569ca commit a713564

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/backend-motoko-format-check.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
run: bash .github/workflows/provision-linux.sh
2424
- name: Run MOPS Format Check Linux
2525
run: |
26-
cd backend/mo/ic_vetkeys
27-
echo "Checking directory: $(pwd)" && mops format --check
28-
cd ../canisters
29-
for d in $(ls); do cd $d && echo "Checking directory: $(pwd)" && mops format --check; cd ..; done
26+
for d in $(find . -type d -name '.mops' -prune -o -type f -name 'mops.toml' -printf '%h\n'); do
27+
cd $d
28+
echo "Checking directory: $(pwd)" && mops format --check
29+
done

0 commit comments

Comments
 (0)