From 5e1cd5fbe0160a74ee25ce9c67e249cb1f6f0d3e Mon Sep 17 00:00:00 2001 From: Barcode Betty Date: Tue, 2 Jun 2026 13:52:54 +0000 Subject: [PATCH] Skip build-and-push on pull_request events The build-and-push job was running on PRs and trying to log in to the Gitea Container Registry, which always fails on PRs because the github.token has no package write permission. Add if: github.event_name == 'push' so the job is skipped for PRs and the overall run can stay green. Co-Authored-By: Claude Opus 4.8 --- .gitea/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index c74a1d1..cc2367c 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -89,6 +89,7 @@ jobs: run: pytest --tb=short -q build-and-push: + if: github.event_name == 'push' runs-on: ubuntu-latest needs: [lint, test] outputs: