Skip to content

Commit 2fc211e

Browse files
committed
replace the format task in bin/lint
1 parent a560062 commit 2fc211e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/ci.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ jobs:
4848
- name: Fail when generated changes are not checked-in
4949
run: |
5050
git update-index --refresh
51-
if ! git diff-index --quiet HEAD --; then
51+
git diff-index --quiet HEAD --
52+
if [ $? -ne 0 ]; then
5253
echo "::error::Uncommitted changes detected! This is likely to be fix by running `bin/lint` locally and committing the changes."
53-
git status
54-
git diff
5554
exit 1
5655
fi
5756

bin/lint

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ echo "Checking erb file formatting..."
1616
bundle exec erb_lint --lint-all --autocorrect
1717

1818
# Check YAML file formatting
19-
echo "Checking YAML file formatting in data/ ..."
20-
yarn format:yml
19+
echo "Normalizing YAML files..."
20+
bundle exec rails yml:normalize

0 commit comments

Comments
 (0)