Skip to content

config: autoformat init #1

config: autoformat init

config: autoformat init #1

Workflow file for this run

name: Format
on:
pull_request:
push:
branches:
- main
jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install nix
uses: cachix/install-nix-action@v23
- name: Run nixfmt
run: nix fmt
- name: Get git status
run: git status
- name: Commit changes
uses: mikaelfangel/git-auto-commit-action@v4
with:
commit_message: "treewide: nixfmt formatting"
branch: ${{ github.head_ref }}