From 124b24ab76098bdcc25017c975bb18ee6b90f77a Mon Sep 17 00:00:00 2001 From: Ajay Bura <32841439+ajbura@users.noreply.github.com> Date: Thu, 14 Oct 2021 10:28:31 +0530 Subject: [PATCH] Fixed deploy on PR --- .github/workflows/pull-request.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 8e54796..ad510fe 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -1,7 +1,7 @@ name: 'Netlify Preview Deploy' on: - pull_request: + pull_request_target: types: ['opened', 'synchronize'] jobs: @@ -13,10 +13,10 @@ jobs: - uses: actions/checkout@v1 - uses: jsmrcaga/action-netlify-deploy@master with: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH2_TOKEN }} + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE3_ID }} BUILD_DIRECTORY: "dist" - - name: Deploy to Netlify + - name: Post on PR uses: nwtgck/actions-netlify@v1.1 with: publish-dir: "dist" @@ -26,5 +26,5 @@ jobs: enable-commit-comment: false overwrites-pull-request-comment: true env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH2_TOKEN }} + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE3_ID }}