From ed395c82345584fa7457bcd2d33186b54092e869 Mon Sep 17 00:00:00 2001 From: Braulio Rivas Abad <61257604+brauliorivas@users.noreply.github.com> Date: Thu, 23 May 2024 02:47:27 -0500 Subject: [PATCH] Fix previews workflow (#22) * add missing permission for preview bot * change trigger from PR to PR target * add on PR .yml to run preview * use one file instead --- .github/workflows/preview.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 9e77499d..23856348 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -1,14 +1,16 @@ name: Deploy PR previews to GitHub Pages concurrency: preview-${{ github.ref }} on: - pull_request: + pull_request_target: types: - opened - reopened - synchronize - closed + permissions: contents: write + pull-requests: write jobs: deploy-preview: runs-on: ubuntu-latest