ci: set when globally
This commit is contained in:
parent
50c4f5c68f
commit
1034682278
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:
|
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:
|
fmt:
|
||||||
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 run nixpkgs#alejandra -- -c .
|
- nix run nixpkgs#alejandra -- -c .
|
||||||
|
|
|
@ -1,18 +1,17 @@
|
||||||
|
|
||||||
|
when:
|
||||||
|
- event: cron
|
||||||
|
cron: flake-lock-update
|
||||||
|
|
||||||
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
|
||||||
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:
|
||||||
|
|
Loading…
Reference in a new issue