From 1034682278155b14eea8a6307fb41bb8d571bf5a Mon Sep 17 00:00:00 2001 From: notohh Date: Tue, 23 Jan 2024 17:42:31 -0500 Subject: [PATCH] ci: set when globally --- .woodpecker/checks.yml | 12 ++++-------- .woodpecker/flake-lock-update.yml | 11 +++++------ 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/.woodpecker/checks.yml b/.woodpecker/checks.yml index 4801ca2..3540e45 100644 --- a/.woodpecker/checks.yml +++ b/.woodpecker/checks.yml @@ -1,19 +1,15 @@ +when: + - path: + include: ['*.nix'] + exclude: ['*.md', 'docs/**', '.woodpecker/*.yaml', '*.js', '*.lua', '*.scss', '*.nu'] 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'] commands: - echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf - nix run nixpkgs#alejandra -- -c . diff --git a/.woodpecker/flake-lock-update.yml b/.woodpecker/flake-lock-update.yml index d69bf3d..b31c404 100644 --- a/.woodpecker/flake-lock-update.yml +++ b/.woodpecker/flake-lock-update.yml @@ -1,18 +1,17 @@ + +when: + - event: cron + cron: flake-lock-update + 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 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: