From 4412e635b06ef01e60716a7cefc5500e87c1c81b Mon Sep 17 00:00:00 2001 From: NAGATA Hiroaki Date: Sun, 17 May 2026 20:53:39 +0900 Subject: [PATCH] ci: limit push trigger to main to avoid duplicate runs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR ブランチへの push で push と pull_request の両イベントが発火し、 各 Node バージョンが2回ずつ実行されていた問題を解消する。 push トリガーを main ブランチに限定することで、PR では pull_request のみ、マージ後は push のみが実行される。 User request: lint.yml で Node.js build が各バージョン2回ずつ 実行されているのを、1回ずつに修正する。 Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 10c5a65..ad0c3ad 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,7 +2,7 @@ name: Node.js build on: push: - branches: ["**"] + branches: [main] pull_request: branches: ["**"]