diff options
-rw-r--r-- | tasks/nixpkgs-fmt/task.yml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tasks/nixpkgs-fmt/task.yml b/tasks/nixpkgs-fmt/task.yml new file mode 100644 index 0000000..f7f04b4 --- /dev/null +++ b/tasks/nixpkgs-fmt/task.yml @@ -0,0 +1,22 @@ +--- +platform: linux +image_resource: + type: registry-image + source: + repository: docker.io/chn2guevara/nixci + tag: latest + +inputs: + - name: file-path + +run: + path: bash + args: + - -eufo + - pipefail + - -c + - | + nixpkgs-fmt --check ${FILE_PATH} + +params: + FILE_PATH: file-path |