18 lines
No EOL
724 B
YAML
18 lines
No EOL
724 B
YAML
on:
|
|
push:
|
|
pull_request_target:
|
|
jobs:
|
|
format:
|
|
name: "Check formatting"
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: https://git.collective-conciousness.monster/actions/checkout@v4
|
|
- name: Install Nix
|
|
uses: https://git.collective-conciousness.monster/actions/nix-actions/install@main
|
|
with:
|
|
install-url: "https://nixos.org/nix/install"
|
|
- name: Check file formatting
|
|
run: |
|
|
echo "extra-substituters = https://cache.collective-conciousness.monster" >> /etc/nix/nix.conf
|
|
echo "extra-trusted-public-keys = adyya-flake:PAbC0hnAiNj/kHcm9wIykmKIf25FDeXB6JusqlX2ghs=" >> /etc/nix/nix.conf
|
|
nix fmt $(find ./ -regex '.*.nix$') -- --check |