Skip to content

Commit 3a02f68

Browse files
committed
chore: fix worflow
1 parent a119132 commit 3a02f68

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/preview-release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,18 @@ on:
2727
- 'tsconfig.json'
2828

2929
# PR triggers - only when labeled
30-
pull_request:
30+
pull_request_target:
3131
types: [labeled, synchronize]
3232

3333
jobs:
34-
debug-context:
35-
runs-on: ubuntu-latest
3634
preview:
3735
# Run only for PRs with 'trigger: preview' label or pushes to master
3836
if: >
3937
github.repository == 'supabase/postgrest-js' &&
4038
(
4139
github.event_name == 'workflow_dispatch' ||
4240
github.event_name == 'push' ||
43-
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'trigger: preview'))
41+
(github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'trigger: preview'))
4442
)
4543
runs-on: ubuntu-latest
4644
outputs:

0 commit comments

Comments
 (0)