Changed event for preview deployments to use pull_request_target

This commit is contained in:
Alejandro Celaya 2021-05-09 14:39:13 +02:00
parent 4e3d311bef
commit eb69165781

View file

@ -1,7 +1,7 @@
name: Deploy preview name: Deploy preview
on: on:
pull_request: null pull_request_target: null
jobs: jobs:
deploy: deploy:
@ -25,7 +25,6 @@ jobs:
- name: Deploy - name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.1 uses: JamesIves/github-pages-deploy-action@4.1.1
with: with:
token: ${{ secrets.PREVIEW_DEPLOY_TOKEN }}
branch: preview-env branch: preview-env
folder: build folder: build
target-folder: ${{ steps.generate_slug.outputs.slug }} target-folder: ${{ steps.generate_slug.outputs.slug }}