infrastructure/workflows/check-workflows.nix

21 lines
413 B
Nix
Raw Normal View History

{
name = "Check workflows";
on = {
pull_request.branches = [ "main" ];
push.paths = [ "workflows/*" ];
};
jobs = {
check_workflows = {
runs-on = "nix";
steps = [
{ uses = "actions/checkout@v3"; }
{
name = "Check that the workflows are up to date";
run = "nix-shell --run '[ $(git status --porcelain) -eq 0 ]'";
}
];
};
};
}