Skip to content

Commit 3b5e627

Browse files
enable openai workflow on fork branch (#82)
* update * update * Update openai.yml
1 parent 4d85f4d commit 3b5e627

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/openai.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
name: OpenAI
55

66
on:
7-
pull_request:
7+
pull_request_target:
88
branches: ['main']
99
paths:
1010
- 'autogen/**'
@@ -25,7 +25,11 @@ jobs:
2525
runs-on: ${{ matrix.os }}
2626
environment: openai
2727
steps:
28-
- uses: actions/checkout@v3
28+
# checkout to pr branch
29+
- name: Checkout
30+
uses: actions/checkout@v3
31+
with:
32+
ref: ${{ github.event.pull_request.head.sha }}
2933
- name: Set up Python ${{ matrix.python-version }}
3034
uses: actions/setup-python@v4
3135
with:

0 commit comments

Comments
 (0)