parent
951f1a918f
commit
c8ec1aaf0e
3 changed files with 81 additions and 32 deletions
39
.woodpecker/dependency-pr.yaml
Normal file
39
.woodpecker/dependency-pr.yaml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
when:
|
||||
- event: cron
|
||||
con: 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue