From 76b1646fb8eb6987744b4c29eeba9e71f37ffc9f Mon Sep 17 00:00:00 2001 From: Kaung Zin Hein Date: Sun, 5 Jan 2025 23:52:53 -0500 Subject: [PATCH] update: prevent duplicate ci runs on PR --- .github/workflows/build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 43f34a5..83dd3e2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,11 @@ name: Node.js CI -on: [push, pull_request] - +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + jobs: build: runs-on: ubuntu-latest