From 4dfb663884ef562bf28ca11a47b149e0ce18f7c1 Mon Sep 17 00:00:00 2001 From: Benedict Weis Date: Tue, 2 Apr 2024 14:22:10 +0200 Subject: [PATCH] fix --- .github/workflows/backend.yml | 5 ++--- .github/workflows/frontend.yml | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 0480527..7f7397a 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -4,9 +4,6 @@ name: Backend on: - push: - branches: - - main pull_request_target: branches: - main @@ -18,6 +15,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Install Node.js uses: actions/setup-node@v2 diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 703bbaa..65909fb 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -4,9 +4,6 @@ name: Frontend on: - push: - branches: - - main pull_request_target: branches: - main @@ -18,6 +15,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Install Node.js uses: actions/setup-node@v2