diff --git a/default.nix b/default.nix index a43ab6f..43c0d41 100644 --- a/default.nix +++ b/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"; + }; }