From a2df3beb7497c11a95f9ab2d55c8e4a0d83d4e64 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:19:39 +0400 Subject: [PATCH] fix ci --- .woodpecker/flake-update.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.woodpecker/flake-update.yml b/.woodpecker/flake-update.yml index 8a55b8cd..24479f97 100644 --- a/.woodpecker/flake-update.yml +++ b/.woodpecker/flake-update.yml @@ -6,10 +6,23 @@ steps: update: image: ghcr.io/nixos/nix:latest commands: - - "nix-shell -p git --run 'git config --global user.email 'bot@sako.lol' && git config --global user.name 'sako-ci' && git checkout -b flake-lock-update && nix --experimental-features \"flakes nix-command\" flake update && git commit -m \"flake.lock: update\" -a'" + - nix flake update push: + image: appleboy/drone-git-push + settings: + branch: flake-lock-update + local_ref: flake-lock-update + ssh_key: + from_secret: ssh_key + remote: ssh://forgejo@git.sako.lol/sako/nixos.git + force: false + commit: true + commit_message: "flake.lock: update" + author_name: "sako-ci" + author_email: "bot@sako.lol" + pr: image: johnwalkerx/gitea-pull-request-create-plugin:latest - #pull: true + pull: true settings: gitea_address: https://git.sako.lol gitea_token: