Skip to content

Update template flake desc #38

Update template flake desc

Update template flake desc #38

Workflow file for this run

name: Statix Lint
on:
push:
branches:
- main
paths-ignore:
- '.github/**'
- 'README.md'
jobs:
lint:
runs-on: ubuntu-latest
outputs:
lint-success: ${{ steps.build-result.outputs.success }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Run statix linter
run: |
echo "Linting Flake..."
if nix run --extra-experimental-features 'nix-command flakes' nixpkgs#statix -- check .; then
echo "success=true" >> $GITHUB_ENV
else
echo "Lint failed, listing flake.lock for debugging:"
cat flake.lock
echo "success=false" >> $GITHUB_ENV
exit 1
fi
- name: Determine lint result
id: build-result
run: echo "success=${{ env.success }}" >> $GITHUB_OUTPUT