2024-12-12 14:41:43 +01:00
|
|
|
# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
|
|
|
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 = [
|
|
|
|
{ uses = "actions/checkout@v3"; }
|
|
|
|
{
|
|
|
|
name = "Check that the workflows are up to date";
|
2024-11-14 22:18:40 +01:00
|
|
|
run = "nix-shell -A check-workflows --run '[ $(git status --porcelain | wc -l) -eq 0 ]'";
|
2024-11-11 17:52:23 +01:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|