From d9cb7707be8ec9545083c3a182ddf075b4c6619e Mon Sep 17 00:00:00 2001 From: Codex Bot Date: Fri, 30 Oct 2026 03:43:04 +0800 Subject: [PATCH] ci: restrict workflows to main branch --- .gitea/workflows/README.md | 2 +- .gitea/workflows/ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/README.md b/.gitea/workflows/README.md index d22d007..bedaa9d 100644 --- a/.gitea/workflows/README.md +++ b/.gitea/workflows/README.md @@ -1,5 +1,5 @@ # Hestia Server workflows -[ci.yml](ci.yml) verifies this project on main pushes, pull requests and manual dispatch. It runs on ces-control, with a 60-minute timeout. HTTPS checkout and job token details are in [the parent README](../README.md). +[ci.yml](ci.yml) verifies this project on main pushes and manual dispatch from main. It runs on ces-control, with a 60-minute timeout. HTTPS checkout and job token details are in [the parent README](../README.md). [deploy.yml](deploy.yml) is main-only and manual-only. It repeats verification, builds the runtime image, then runs the existing deployment script. Production resource names, paths, lock and database mounts remain unchanged. diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 5f151d3..9299c7d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -3,11 +3,11 @@ name: Verify Hestia server on: push: branches: [main] - pull_request: workflow_dispatch: jobs: verify: + if: gitea.ref == 'refs/heads/main' runs-on: ces-control timeout-minutes: 60 env: -- 2.52.0