2024-01-23 17:51:46 -05:00
|
|
|
clone:
|
|
|
|
git:
|
|
|
|
image: woodpeckerci/plugin-git
|
|
|
|
settings:
|
|
|
|
branch: flake-lock-update
|
2024-01-23 17:42:31 -05:00
|
|
|
when:
|
|
|
|
- event: cron
|
|
|
|
cron: flake-lock-update
|
|
|
|
|
2024-01-23 16:29:31 -05:00
|
|
|
steps:
|
|
|
|
update:
|
|
|
|
image: nixos/nix
|
2024-01-23 18:36:37 -05:00
|
|
|
commands: |
|
|
|
|
echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
2024-01-23 19:00:41 -05:00
|
|
|
echo "access-tokens = github.com=$${GH_PAT}" >> /etc/nix/nix.conf
|
2024-01-23 18:36:37 -05:00
|
|
|
nix flake update
|
|
|
|
secrets: [ gh_pat ]
|
2024-01-23 18:01:23 -05:00
|
|
|
push-changes:
|
|
|
|
image: appleboy/drone-git-push
|
|
|
|
settings:
|
2024-01-23 19:28:31 -05:00
|
|
|
remote: ssh://forgejo@git.flake.sh:2222/notohh/snowflake.git
|
2024-01-23 18:01:23 -05:00
|
|
|
branch: flake-lock-update
|
2024-01-23 19:04:10 -05:00
|
|
|
local_ref: flake-lock-update
|
2024-01-23 18:01:23 -05:00
|
|
|
ssh_key:
|
|
|
|
from_secret: forgejo_ssh_key
|
|
|
|
commit: true
|
|
|
|
commit_message: "flake.lock: update"
|
2024-01-23 19:11:43 -05:00
|
|
|
author_name: "WoodpeckerCI"
|
|
|
|
author_email: "woodpecker@flake.sh"
|
2024-01-23 16:29:31 -05:00
|
|
|
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}
|
2024-01-23 16:47:40 -05:00
|
|
|
branch: flake-lock-update
|
2024-01-23 19:44:20 -05:00
|
|
|
base_branch: master
|
2024-01-23 16:50:08 -05:00
|
|
|
pr_title: "flake.lock: update"
|
2024-01-23 16:29:31 -05:00
|
|
|
pr_body: PR automatically created by Woodpecker CI
|
2024-01-23 19:36:32 -05:00
|
|
|
skip_on_missing_branch: false
|
2024-01-23 16:29:31 -05:00
|
|
|
close_pr_if_empty: true
|
|
|
|
delete_branch_if_pr_empty: true
|
|
|
|
merge_when_checks_succeed: false
|
|
|
|
delete_branch_after_merge: true
|