From bd5275944a3a6111c2da65901648d5ab3896a706 Mon Sep 17 00:00:00 2001 From: Codex Bot Date: Fri, 30 Oct 2026 03:43:08 +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 c1e0556..e42878c 100644 --- a/.gitea/workflows/README.md +++ b/.gitea/workflows/README.md @@ -1,5 +1,5 @@ # Lyra CLI 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). There is no production service deployment in this workflow. diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 343b155..9e40533 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -3,11 +3,11 @@ name: Verify Lyra CLI 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