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