-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathformat.yaml
More file actions
30 lines (28 loc) · 911 Bytes
/
format.yaml
File metadata and controls
30 lines (28 loc) · 911 Bytes
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
29
30
name: format
on:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-nix
with:
cachix_cache_name: "${{ secrets.CACHIX_CACHE_NAME }}"
cachix_auth_token: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: treefmt
run: |
just format --fail-on-change --no-cache ||
{
echo "You have not formatted these files: run 'just format' locally!"
echo "Note: For stability -> run it over Nix: 'just develop just format'"
echo "=============================================================="
git diff --name-only
echo "=============================================================="
}