We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3dfaaf6 commit bfd8c91Copy full SHA for bfd8c91
1 file changed
.github/workflows/lint.yml
@@ -48,9 +48,21 @@ jobs:
48
- name: Install Node packages
49
run: npm ci --ignore-scripts
50
51
- - name: Run Prettier
+ - name: Check formatting
52
run: npx prettier --check .
53
54
+ - name: Apply formatting
55
+ if: github.event_name == 'pull_request'
56
+ run: npm run format
57
+
58
+ - name: Commit formatting changes
59
60
+ uses: EndBug/add-and-commit@v9
61
+ with:
62
+ default_author: github_actions
63
+ message: Apply Prettier formatting
64
+ add: "."
65
66
eslint:
67
name: ESLint
68
runs-on: ubuntu-latest
0 commit comments