39 lines
1.3 KiB
YAML
39 lines
1.3 KiB
YAML
when:
|
|
- event: cron
|
|
cron: dependency_update
|
|
|
|
steps:
|
|
- name: nix-flake-update
|
|
image: ghcr.io/lix-project/lix:latest
|
|
commands:
|
|
- |
|
|
cat > /etc/nix/nix.conf << EOF
|
|
# default settings in the docker image
|
|
build-users-group = nixbld
|
|
sandbox = false
|
|
|
|
# additional settings
|
|
experimental-features = nix-command flakes
|
|
substituters = https://attic.hailsatan.eu/xyno https://cache.nixos.org/
|
|
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= xyno:l2mXaEYOj2kSjxT1dbP1iVya1bBXmKuO7jRXUZohi8c=
|
|
trusted-substituters = https://attic.hailsatan.eu/xyno
|
|
EOF
|
|
- nix flake update
|
|
- name: create-pr
|
|
image: johnwalkerx/gitea-pull-request-create-plugin:latest
|
|
pull: true
|
|
settings:
|
|
gitea_address: https://git.xyno.systems
|
|
gitea_token:
|
|
from_secret: forge_token
|
|
owner: ${CI_REPO_OWNER}
|
|
repo: ${CI_REPO_NAME}
|
|
branch: ${CI_COMMIT_BRANCH}
|
|
base_branch: main
|
|
pr_title: Dependency Update
|
|
pr_body: PR automatically created by Woodpecker CI
|
|
skip_on_missing_branch: true
|
|
skip_on_empty_branch: true
|
|
close_pr_if_empty: true
|
|
delete_branch_if_pr_empty: true
|
|
delete_branch_after_merge: true
|