nixos/.woodpecker/flake-update.yml

33 lines
1 KiB
YAML
Raw Normal View History

2025-01-06 10:35:20 +04:00
when:
event: cron
cron: "update flake"
steps:
update:
image: ghcr.io/nixos/nix:latest
2025-01-06 13:06:18 +04:00
environment:
GITHUB_TOKEN:
from_secret: github_token
2025-01-06 10:35:20 +04:00
commands:
2025-01-06 13:06:18 +04:00
- echo 'access-tokens = github.com=$GITHUB_TOKEN' >> /etc/nix/nix.conf
2025-01-06 10:35:20 +04:00
- nix --experimental-features 'flakes nix-command' flake update
2025-01-06 12:52:36 +04:00
- "nix-shell -p git --run 'git config --global user.email 'bot@sako.lol' && git config --global user.name 'sako-ci' && git commit -m 'flake.lock: update' -a'"
2025-01-06 10:35:20 +04:00
push:
image: johnwalkerx/gitea-pull-request-create-plugin:latest
pull: true
settings:
2025-01-06 12:55:34 +04:00
gitea_address: https://git.sako.lol
2025-01-06 10:35:20 +04:00
gitea_token:
from_secret: token
owner: ${CI_REPO_OWNER}
repo: ${CI_REPO_NAME}
branch: ${CI_COMMIT_BRANCH}
base_branch: master
2025-01-06 10:36:12 +04:00
pr_title: "flake.lock: update"
2025-01-06 12:27:00 +04:00
pr_body: update flake.lock
2025-01-06 10:35:20 +04:00
skip_on_missing_branch: true
close_pr_if_empty: true
delete_branch_if_pr_empty: true
merge_when_checks_succeed: true
delete_branch_after_merge: true