From 591ccd342eedb1014d9d99666c114049d8b55732 Mon Sep 17 00:00:00 2001 From: Misthios Date: Mon, 19 Oct 2026 09:51:54 +0000 Subject: [PATCH] ci: skip registry login for pull requests PR builds never push, and Gitea gives them no secrets, so the login with an empty token failed every PR build before it started. Co-Authored-By: Claude Opus 5.5 (1M context) --- .gitea/workflows/build.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 95efdb0..140a38f 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -104,6 +104,8 @@ jobs: fetch-depth: 0 - name: Log in to registry + # Only the push step needs it, and PR builds get no secrets. + if: github.event_name != 'pull_request' env: REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }} REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}