From 334e803316dd8fe57027811cc8d708b9a35ad423 Mon Sep 17 00:00:00 2001 From: yohanelly95 Date: Thu, 19 Sep 2024 13:12:01 +0530 Subject: [PATCH] chore: trigger on pull_request --- .github/workflows/ci.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 69f89ec..c1f5e9c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,25 +4,23 @@ on: workflow_dispatch: push: branches: ["master"] - pull_request_target: + pull_request: branches: ["master"] jobs: tests: runs-on: self-hosted - strategy: - matrix: - node-version: [20.x] # Updated to a more recent LTS version - steps: - name: Checkout code uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js uses: actions/setup-node@v3 with: - node-version: ${{ matrix.node-version }} + node-version: 20 cache: "npm" - name: Install Dependencies