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
@@ -11,7 +11,7 @@ on:
jobs:
expand-root:
if: ${{ github.event_name == 'workflow_dispatch' && inputs.confirm == 'EXPAND_RUNNER_ROOT' }}
if: ${{ gitea.ref == 'refs/heads/main' && (github.event_name == 'workflow_dispatch' && inputs.confirm == 'EXPAND_RUNNER_ROOT') }}
runs-on: ubuntu24.04-x64-lean4.35
timeout-minutes: 20
steps: