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