woodpecker-switch #22
2 changed files with 12 additions and 12 deletions
|
@ -1,19 +1,19 @@
|
||||||
steps:
|
steps:
|
||||||
check:
|
check:
|
||||||
image: nixos/nix
|
image: nixos/nix
|
||||||
|
when:
|
||||||
|
- path:
|
||||||
|
include: ['*.nix']
|
||||||
|
exclude: ['*.md', 'docs/**', '.woodpecker/*.yaml', '*.js', '*.lua', '*.scss', '*.nu']
|
||||||
commands:
|
commands:
|
||||||
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
||||||
- nix flake check
|
- nix flake check
|
||||||
|
fmt:
|
||||||
|
image: nixos/nix
|
||||||
when:
|
when:
|
||||||
- path:
|
- path:
|
||||||
include: ['*.nix']
|
include: ['*.nix']
|
||||||
exclude: ['*.md', 'docs/**', '.woodpecker/*.yaml', '*.js', '*.lua', '*.scss', '*.nu']
|
exclude: ['*.md', 'docs/**', '.woodpecker/*.yaml', '*.js', '*.lua', '*.scss', '*.nu']
|
||||||
fmt:
|
|
||||||
image: nixos/nix
|
|
||||||
commands:
|
commands:
|
||||||
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
||||||
- nix run nixpkgs#alejandra -- -c .
|
- nix run nixpkgs#alejandra -- -c .
|
||||||
when:
|
|
||||||
- path:
|
|
||||||
include: ['*.nix']
|
|
||||||
exclude: ['*.md', 'docs/**', '.woodpecker/*.yaml', '*.js', '*.lua', '*.scss', '*.nu']
|
|
||||||
|
|
|
@ -1,15 +1,18 @@
|
||||||
steps:
|
steps:
|
||||||
update:
|
update:
|
||||||
image: nixos/nix
|
image: nixos/nix
|
||||||
|
when:
|
||||||
|
- event: cron
|
||||||
|
cron: flake-lock-update
|
||||||
commands:
|
commands:
|
||||||
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
||||||
- nix flake update
|
- nix flake update
|
||||||
when:
|
|
||||||
event: cron
|
|
||||||
cron: "flake-lock-update"
|
|
||||||
make-pr:
|
make-pr:
|
||||||
image: johnwalkerx/gitea-pull-request-create-plugin:latest
|
image: johnwalkerx/gitea-pull-request-create-plugin:latest
|
||||||
pull: true
|
pull: true
|
||||||
|
when:
|
||||||
|
- event: cron
|
||||||
|
cron: flake-lock-update
|
||||||
settings:
|
settings:
|
||||||
gitea_address: https://git.flake.sh/
|
gitea_address: https://git.flake.sh/
|
||||||
gitea_token:
|
gitea_token:
|
||||||
|
@ -25,6 +28,3 @@ steps:
|
||||||
delete_branch_if_pr_empty: true
|
delete_branch_if_pr_empty: true
|
||||||
merge_when_checks_succeed: false
|
merge_when_checks_succeed: false
|
||||||
delete_branch_after_merge: true
|
delete_branch_after_merge: true
|
||||||
when:
|
|
||||||
event: cron
|
|
||||||
cron: "flake-lock-update"
|
|
||||||
|
|
Loading…
Reference in a new issue