Skip build-and-push on pull_request events
CI / lint (pull_request) Failing after 3s
CI / typecheck (pull_request) Successful in 27s
CI / test (pull_request) Successful in 42s
CI / build-and-push (pull_request) Has been skipped

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 <noreply@anthropic.com>
This commit is contained in:
Barcode Betty
2026-06-02 13:52:54 +00:00
parent 83ee3e814b
commit 5e1cd5fbe0
+1
View File
@@ -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: