We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe8494c commit b9c46c0Copy full SHA for b9c46c0
1 file changed
.github/workflows/preview-pr.yaml
@@ -2,13 +2,23 @@ name: preview-pr
2
3
on:
4
pull_request_target:
5
- types: [opened, reopened]
+ types: [opened, reopened, synchronize]
6
7
permissions:
8
pull-requests: write
9
10
jobs:
11
+ authorize:
12
+ environment:
13
+ ${{ github.event_name == 'pull_request_target' &&
14
+ github.event.pull_request.head.repo.full_name != github.repository &&
15
+ 'external' || 'internal' }}
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - run: "true"
19
+
20
build:
21
+ needs: authorize
22
runs-on: ubuntu-latest
23
steps:
24
- name: Checkout
0 commit comments