infrastructure/workflows/check-workflows.nix
sinavir 8a958087f7 feat(workflows): Move workflows to dedicated runners
This also removes storage01 as a builder
2025-04-28 12:42:51 +02:00

29 lines
643 B
Nix

# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
{ nix-actions, ... }:
{
name = "Check workflows";
on = {
pull_request.branches = [ "main" ];
push.paths = [ "workflows/*" ];
};
jobs = {
check_workflows = {
runs-on = "nix-infra";
steps = [
(nix-actions.lib.steps.checkout { })
{
name = "Check that the workflows are up to date";
run = nix-actions.lib.nix-shell {
script = "[ $(git status --porcelain | wc -l) -eq 0 ]";
shell = "check-workflows";
};
}
];
};
};
}