ci: restrict workflows to main branch

This commit is contained in:
2026-10-30 03:44:05 +08:00
parent a80448ae36
commit 10a50e32db
4 changed files with 8 additions and 5 deletions
+2 -1
View File
@@ -2,13 +2,14 @@ name: env-probe
on:
push:
branches: ["ci/**"]
branches: [main]
paths:
- ".gitea/workflows/env-probe.yml"
workflow_dispatch:
jobs:
probe:
if: gitea.ref == 'refs/heads/main'
runs-on: ubuntu24.04-x64-lean4.35
timeout-minutes: 15
steps: