From 2a34481419adc20fdfb5f0dcf984c3f6949b2b8d Mon Sep 17 00:00:00 2001 From: Moin khokhar <71922415+silentknight46@users.noreply.github.com> Date: Sat, 6 Sep 2025 06:03:30 +0400 Subject: [PATCH] PoC: add PR trigger + skip deploy on PR --- .github/workflows/pull_request.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index bf54bc6..ed8e1c6 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -1,9 +1,14 @@ name: pull_request + on: + pull_request: + branches: [ main ] # ✅ ab PR par bhi trigger hoga push: branches-ignore: '**' + env: NIXPKGS_ALLOW_UNFREE: 1 + jobs: build-preview: runs-on: 'ubuntu-24.04' @@ -22,6 +27,7 @@ jobs: with: name: result path: ./out/ + deploy-preview: needs: - build-preview @@ -32,11 +38,14 @@ jobs: with: name: result path: ./out/ + + # ✅ Deploy ko PR events par skip kar do - name: Deploy to Firebase + if: github.event_name != 'pull_request' uses: w9jds/firebase-action@master with: args: hosting:channel:deploy "$GITHUB_SHA" env: FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} PROJECT_ID: note-maps - PROJECT_PATH: ./build/firebase/ + PROJECT_PATH: ./build/firebase/ \ No newline at end of file