forcebot_rs/.woodpecker/flake-update.yml
notohh 38a5e7e520
Some checks failed
ci/woodpecker/manual/cargo-checks Pipeline failed
ci: add basic cargo ci
2024-02-25 10:54:02 -05:00

47 lines
1.3 KiB
YAML

clone:
git:
image: woodpeckerci/plugin-git
settings:
branch: flake-lock-update
when:
- event: cron
cron: flake-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: main
pr_title: "flake.lock: update"
pr_body: PR automatically created by Woodpecker CI
close_pr_if_empty: true
delete_branch_if_pr_empty: true
merge_when_checks_succeed: false
delete_branch_after_merge: true