File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 15
15
16
16
jobs :
17
17
build-preview :
18
- # Only run if PR has the 'trigger: preview' label
18
+ # Only run if PR has the 'trigger: preview' label and is on the correct repository
19
19
if : |
20
+ github.repository == 'supabase/postgrest-js' &&
20
21
contains(github.event.pull_request.labels.*.name, 'trigger: preview')
21
22
runs-on : ubuntu-latest
23
+ timeout-minutes : 15
22
24
outputs :
23
25
preview-url : ${{ steps.preview.outputs.url }}
24
26
pr-number : ${{ github.event.pull_request.number }}
Original file line number Diff line number Diff line change 11
11
12
12
jobs :
13
13
update-comment :
14
+ # Only run on the correct repository
15
+ if : github.repository == 'supabase/postgrest-js'
14
16
runs-on : ubuntu-latest
17
+ timeout-minutes : 5
15
18
steps :
16
19
# Get PR number from the workflow run
17
20
- name : Get PR info
Original file line number Diff line number Diff line change 22
22
23
23
jobs :
24
24
trigger-tests :
25
- # Only run if the preview build succeeded
26
- if : github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
25
+ # Only run if the preview build succeeded and on the correct repository
26
+ if : |
27
+ github.repository == 'supabase/postgrest-js' &&
28
+ (github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success')
27
29
runs-on : ubuntu-latest
30
+ timeout-minutes : 10
28
31
steps :
29
32
# For workflow_run trigger, download the preview info
30
33
- name : Download preview info
You can’t perform that action at this time.
0 commit comments