blob: 7610e0b737a13c9ba73cf1ef2620932bd07593ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
name: format
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
format:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: install Nix
uses: cachix/install-nix-action@v20
- name: format
run: |
nix run nixpkgs#nodePackages.prettier -- --editorconfig -w .
- name: add and commit
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: "chore: format with prettier"
|