From de5013a4c17b1ab4880bca73ea99338a94cd345e Mon Sep 17 00:00:00 2001 From: notohh Date: Sun, 25 Feb 2024 09:26:20 -0500 Subject: [PATCH] ci: add .woodpecker --- .woodpecker/checks.yml | 0 .woodpecker/flake-update.yml | 47 ++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 .woodpecker/checks.yml create mode 100644 .woodpecker/flake-update.yml diff --git a/.woodpecker/checks.yml b/.woodpecker/checks.yml new file mode 100644 index 0000000..e69de29 diff --git a/.woodpecker/flake-update.yml b/.woodpecker/flake-update.yml new file mode 100644 index 0000000..fd1f9e2 --- /dev/null +++ b/.woodpecker/flake-update.yml @@ -0,0 +1,47 @@ +clone: + git: + image: woodpeckerci/plugin-git + settings: + branch: flake-lock-update +when: + - event: cron + cron: flake-lock-update + +steps: + update: + image: nixos/nix + commands: | + echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf + echo "access-tokens = github.com=$${GH_PAT}" >> /etc/nix/nix.conf + nix flake update + secrets: [gh_pat] + push-changes: + image: appleboy/drone-git-push + settings: + remote: ssh://forgejo@git.flake.sh:2222/modulatingforce/forcebot_rs.git + branch: flake-lock-update + local_ref: flake-lock-update + ssh_key: + from_secret: forgejo_ssh_key + commit: true + commit_message: "flake.lock: update" + author_name: "WoodpeckerCI" + author_email: "woodpecker@flake.sh" + make-pr: + image: johnwalkerx/gitea-pull-request-create-plugin:latest + pull: true + settings: + gitea_address: https://git.flake.sh/ + gitea_token: + from_secret: forgejo_token + owner: ${CI_REPO_OWNER} + repo: ${CI_REPO_NAME} + branch: flake-lock-update + base_branch: master + pr_title: "flake.lock: update" + pr_body: PR automatically created by Woodpecker CI + skip_on_missing_branch: false + close_pr_if_empty: true + delete_branch_if_pr_empty: true + merge_when_checks_succeed: false + delete_branch_after_merge: true