ci: restrict workflows to main branch

This commit is contained in:
2026-10-30 03:44:01 +08:00
parent a3021d9c39
commit 23f1925cc0
+2 -2
View File
@@ -6,12 +6,12 @@ name: ci
on:
push:
branches: [main, "ci/**"]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test:
if: gitea.ref == 'refs/heads/main'
runs-on: ubuntu24.04-x64-lean4.35
timeout-minutes: 20
steps: