diff options
author | Ernesto Castellotti <mail@ernestocastellotti.it> | 2023-06-07 19:21:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-07 19:21:51 +0200 |
commit | b9c46c0cf0951ce7f0e125bd61fc8668c2ee7365 (patch) | |
tree | 10d7f00db78a4f0f937a8b603146f12bfcc16af3 | |
parent | Use PR branch for preview (#225) (diff) | |
download | hack-gpon.github.io-b9c46c0cf0951ce7f0e125bd61fc8668c2ee7365.tar hack-gpon.github.io-b9c46c0cf0951ce7f0e125bd61fc8668c2ee7365.tar.gz hack-gpon.github.io-b9c46c0cf0951ce7f0e125bd61fc8668c2ee7365.tar.bz2 hack-gpon.github.io-b9c46c0cf0951ce7f0e125bd61fc8668c2ee7365.tar.lz hack-gpon.github.io-b9c46c0cf0951ce7f0e125bd61fc8668c2ee7365.tar.xz hack-gpon.github.io-b9c46c0cf0951ce7f0e125bd61fc8668c2ee7365.tar.zst hack-gpon.github.io-b9c46c0cf0951ce7f0e125bd61fc8668c2ee7365.zip |
-rw-r--r-- | .github/workflows/preview-pr.yaml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/.github/workflows/preview-pr.yaml b/.github/workflows/preview-pr.yaml index 4884c4e..f171f71 100644 --- a/.github/workflows/preview-pr.yaml +++ b/.github/workflows/preview-pr.yaml @@ -2,13 +2,23 @@ name: preview-pr on: pull_request_target: - types: [opened, reopened] + types: [opened, reopened, synchronize] permissions: pull-requests: write jobs: + authorize: + environment: + ${{ github.event_name == 'pull_request_target' && + github.event.pull_request.head.repo.full_name != github.repository && + 'external' || 'internal' }} + runs-on: ubuntu-latest + steps: + - run: "true" + build: + needs: authorize runs-on: ubuntu-latest steps: - name: Checkout |