From cc7512a702c798186c7abbfe103a409afd329aa5 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Mon, 6 Jan 2025 10:35:20 +0400 Subject: [PATCH] woodpecker --- .woodpecker/flake-update.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .woodpecker/flake-update.yml diff --git a/.woodpecker/flake-update.yml b/.woodpecker/flake-update.yml new file mode 100644 index 00000000..233efce6 --- /dev/null +++ b/.woodpecker/flake-update.yml @@ -0,0 +1,28 @@ +when: + event: cron + cron: "update flake" + +steps: + update: + image: ghcr.io/nixos/nix:latest + commands: + - nix --experimental-features 'flakes nix-command' flake update + - nix-shell -p git --run 'git config --global user.email "bot@sako.lol" && git config --global user.name "sako-ci" && git commit -a -m "flake.lock: update"' + push: + image: johnwalkerx/gitea-pull-request-create-plugin:latest + pull: true + settings: + gitea_address: https://codeberg.org + gitea_token: + from_secret: token + owner: ${CI_REPO_OWNER} + repo: ${CI_REPO_NAME} + branch: ${CI_COMMIT_BRANCH} + base_branch: master + pr_title: flake.lock: update + pr_body: flake tuah update that thang + 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