ci: run the check job on pull requests (#68) (#69)

Co-authored-by: Mathias <mthbqv@gmail.com>
This commit is contained in:
2026-10-05 07:25:38 +00:00
committed by mathias
parent dc127a05b5
commit 1d9cb6b99a
+7
View File
@@ -8,6 +8,12 @@ name: CD
# (Only applies to branch pushes; tag pushes always trigger.) # (Only applies to branch pushes; tag pushes always trigger.)
paths-ignore: paths-ignore:
- 'docs/**' - 'docs/**'
# gitea-mcp#68: without this a PR never got a CI run, so the risk/medium+
# PR lane merged on local `task check` alone. Only the check job runs for a
# PR -- build and deploy stay push/tag-only (no images, no infra writes,
# no secrets from a PR).
pull_request:
branches: [main]
env: env:
IMAGE: gitea-mcp IMAGE: gitea-mcp
@@ -44,6 +50,7 @@ jobs:
build: build:
name: Build & Import name: Build & Import
needs: check needs: check
if: github.event_name == 'push'
runs-on: self-hosted runs-on: self-hosted
outputs: outputs:
image-tag: ${{ steps.meta.outputs.sha-tag }} image-tag: ${{ steps.meta.outputs.sha-tag }}