summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-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