Commit e2cbf39

HPCesia <me@hpcesia.com>
2026-05-26 15:58:09
Fix CI errors
1 parent 99dd519
Changed files (1)
.woodpecker/update-flake-lock.yml
@@ -2,18 +2,28 @@ when:
   - event: [cron, manual]
     cron: "update flake lock"
 
+labels:
+  network: auto
+
 steps:
   - name: update
     image: docker.io/nixos/nix:2.32.8
     commands:
       - nix flake update --extra-experimental-features "flakes nix-command"
 
+  - name: setup-remote
+    image: docker.io/alpine/git
+    commands:
+      - export REPO_URL="https://$${CI_REPO_OWNER}:$${TOKEN}@codeberg.org/$${CI_REPO_OWNER}/$${CI_REPO_NAME}.git"
+      - git remote set-url origin "$${REPO_URL}"
+    environment:
+      TOKEN:
+        from_secret: forge_token
+
   - name: push
     image: docker.io/appleboy/drone-git-push:1.2.3
     settings:
-      remote: ${CI_REPO_CLONE_SSH_URL}
-      ssh_key:
-        from_secret: deploy_key
+      remote_name: origin
       commit: true
       commit_message: "Update Nix flake lock"
       author_name: "Woodpecker-CI [bot]"
@@ -29,7 +39,7 @@ steps:
         from_secret: forge_token
       owner: ${CI_REPO_OWNER}
       repo: ${CI_REPO_NAME}
-      branch: ci/update-flake
+      branch: ci/update-flake-lock
       base_branch: main
       close_pr_if_empty: true
       delete_branch_if_pr_empty: true