woodpecker-switch #22
2 changed files with 9 additions and 14 deletions
|
@ -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 .
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue