diff --git a/.woodpecker/checks.yml b/.woodpecker/checks.yml index 9d53aa2..4801ca2 100644 --- a/.woodpecker/checks.yml +++ b/.woodpecker/checks.yml @@ -1,19 +1,19 @@ steps: check: image: nixos/nix + when: + - path: + include: ['*.nix'] + exclude: ['*.md', 'docs/**', '.woodpecker/*.yaml', '*.js', '*.lua', '*.scss', '*.nu'] commands: - echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf - nix flake check + fmt: + image: nixos/nix when: - path: include: ['*.nix'] exclude: ['*.md', 'docs/**', '.woodpecker/*.yaml', '*.js', '*.lua', '*.scss', '*.nu'] - fmt: - image: nixos/nix commands: - echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf - nix run nixpkgs#alejandra -- -c . - when: - - path: - include: ['*.nix'] - exclude: ['*.md', 'docs/**', '.woodpecker/*.yaml', '*.js', '*.lua', '*.scss', '*.nu'] diff --git a/.woodpecker/flake-lock-update.yml b/.woodpecker/flake-lock-update.yml index 1e76bc0..d69bf3d 100644 --- a/.woodpecker/flake-lock-update.yml +++ b/.woodpecker/flake-lock-update.yml @@ -1,15 +1,18 @@ steps: update: image: nixos/nix + when: + - event: cron + cron: flake-lock-update commands: - echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf - nix flake update - when: - event: cron - cron: "flake-lock-update" make-pr: image: johnwalkerx/gitea-pull-request-create-plugin:latest pull: true + when: + - event: cron + cron: flake-lock-update settings: gitea_address: https://git.flake.sh/ gitea_token: @@ -25,6 +28,3 @@ steps: delete_branch_if_pr_empty: true merge_when_checks_succeed: false delete_branch_after_merge: true - when: - event: cron - cron: "flake-lock-update"