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