From 2406ee8e91223f1b17ecf135bbcb286633db89ab Mon Sep 17 00:00:00 2001 From: Celes Renata Date: Sat, 18 Apr 2026 22:12:48 +0000 Subject: [PATCH] ci: make mirror-github step failure-tolerant, skip if no SSH key --- .woodpecker.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index 8ca0cd9..b2c0ceb 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -345,10 +345,12 @@ steps: mirror-github: image: alpine/git + failure: ignore environment: GITHUB_SSH_KEY: from_secret: github_ssh_key commands: + - "[ -z \"$GITHUB_SSH_KEY\" ] && echo 'No SSH key configured, skipping mirror' && exit 0" - mkdir -p ~/.ssh - echo "$GITHUB_SSH_KEY" > ~/.ssh/id_ed25519 - chmod 600 ~/.ssh/id_ed25519