Skip to content

Commit 78e9fcc

Browse files
committed
chore: target pull_request_target events
1 parent 3bbdbbb commit 78e9fcc

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

.github/workflows/preview-release.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,14 @@ on:
3131
types: [labeled, synchronize]
3232

3333
jobs:
34-
debug-context:
35-
runs-on: ubuntu-latest
36-
steps:
37-
- run: |
38-
echo "repo=${{ github.repository }}"
39-
echo "event_name=${{ github.event_name }}"
40-
echo "labels=${{ toJson(github.event.pull_request.labels) }}"
41-
echo "has_preview_label=${{ contains(github.event.pull_request.labels.*.name, 'trigger: preview') }}"
4234
preview:
4335
# Run only for PRs with 'trigger: preview' label or pushes to master
4436
if: >
4537
github.repository == 'supabase/postgrest-js' &&
4638
(
4739
github.event_name == 'workflow_dispatch' ||
4840
github.event_name == 'push' ||
49-
(github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'trigger: preview'))
41+
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'trigger: preview'))
5042
)
5143
runs-on: ubuntu-latest
5244
outputs:

0 commit comments

Comments
 (0)