infrastructure/.forgejo/workflows/pre-commit.yaml

18 lines
518 B
YAML
Raw Normal View History

2025-01-15 10:49:10 +01:00
###
# This file was automatically generated with nix-actions.
jobs:
pre-commit:
runs-on: nix
steps:
- uses: actions/checkout@v3
- name: Check stage pre-commit
run: nix-shell -A pre-commit --run 'pre-commit run --all-files --hook-stage
pre-commit --show-diff-on-failure'
- name: Check stage pre-push
run: nix-shell -A pre-commit --run 'pre-commit run --all-files --hook-stage
pre-push --show-diff-on-failure'
name: Run pre-commit on all files
2024-11-19 00:53:33 +01:00
on:
- push
- pull_request