feat: overengineer standard steps
This commit is contained in:
parent
4d2e4e0488
commit
3c07af3887
1 changed files with 28 additions and 0 deletions
28
default.nix
28
default.nix
|
@ -66,4 +66,32 @@ in
|
|||
expr = repr: "\${{ ${repr} }}";
|
||||
secret = name: expr "secrets.${name}";
|
||||
};
|
||||
|
||||
steps =
|
||||
{
|
||||
__functor =
|
||||
self:
|
||||
{
|
||||
name,
|
||||
url,
|
||||
defaultVersion,
|
||||
}:
|
||||
self
|
||||
// {
|
||||
${name} =
|
||||
{
|
||||
__version ? defaultVersion,
|
||||
...
|
||||
}@args:
|
||||
{
|
||||
uses = "${url}@${__version}";
|
||||
"with" = builtins.removeAttrs args [ "__version" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "checkout";
|
||||
defaultVersion = "v3";
|
||||
url = "actions/checkout";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue