Skip to content

Commit 367a85c

Browse files
committed
🐛 fix(ci): allow prek to modify files before commit
Prek exits non-zero when hooks modify files, which prevented the commit step from running. Using `|| true` allows the fixes to be applied and committed in the next step.
1 parent b7b23d0 commit 367a85c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
VERSION=$(cat .version)
3333
sed -i "s/rev: \".*\"/rev: \"v$VERSION\"/" README.md
3434
- name: 💅 Format generated files
35-
run: uvx prek run --all-files
35+
run: uvx prek run --all-files || true
3636
- name: 🔄 Commit fixes and update tag
3737
id: commit
3838
run: |

0 commit comments

Comments
 (0)