diff --git a/.forgejo/workflows/reuse-check.yaml b/.forgejo/workflows/reuse-check.yaml new file mode 100644 index 0000000..fa21070 --- /dev/null +++ b/.forgejo/workflows/reuse-check.yaml @@ -0,0 +1,12 @@ +### +# This file was automatically generated with nix-actions. +jobs: + pre-commit: + runs-on: nix + steps: + - uses: actions/checkout@v3 + - uses: https://github.com/fsfe/reuse-action@v5 +name: Run pre-commit on all files +on: +- push +- pull_request diff --git a/default.nix b/default.nix index 6240f6d..3fdd903 100644 --- a/default.nix +++ b/default.nix @@ -44,12 +44,6 @@ let package = pkgs.nixfmt-rfc-style; }; - reuse = nix-reuse.hook { - enable = true; - stages = [ "pre-push" ]; - package = pkgs.reuse; # git-hooks.nix is lagging on nixpkgs update - }; - commitizen.enable = true; }; }; diff --git a/workflows/reuse-check.nix b/workflows/reuse-check.nix new file mode 100644 index 0000000..b89f363 --- /dev/null +++ b/workflows/reuse-check.nix @@ -0,0 +1,19 @@ +# SPDX-FileCopyrightText: 2024 Tom Hubrecht +# +# SPDX-License-Identifier: EUPL-1.2 + +{ + name = "Run pre-commit on all files"; + on = [ + "push" + "pull_request" + ]; + + jobs.pre-commit = { + runs-on = "nix"; + steps = [ + { uses = "actions/checkout@v3"; } + { uses = "https://github.com/fsfe/reuse-action@v5"; } + ]; + }; +}