adyya-flake/.forgejo/workflows/check.yaml
mih44 6a49742a82
All checks were successful
/ Check formatting (push) Successful in 1m19s
moved actions to a different user
2024-11-28 10:35:14 +02:00

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