summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorErnesto Castellotti <mail@ernestocastellotti.it>2023-06-07 19:21:51 +0200
committerGitHub <noreply@github.com>2023-06-07 19:21:51 +0200
commitb9c46c0cf0951ce7f0e125bd61fc8668c2ee7365 (patch)
tree10d7f00db78a4f0f937a8b603146f12bfcc16af3 /.github
parentUse PR branch for preview (#225) (diff)
downloadhack-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
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/preview-pr.yaml12
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