File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -126,14 +126,16 @@ jobs:
126
126
127
127
steps :
128
128
- name : Clone the connector
129
+ # `ref` as merge request is needed for pull_request_target because this
130
+ # target runs in the context of the base commit of the pull request.
129
131
uses : actions/checkout@v2
130
- # This is needed for pull_request_target because this event runs in the
131
- # context of the base commit of the pull request. It works fine for
132
- # `push` and `workflow_dispatch` because the default behavior is used
133
- # if `ref` and `repository` are empty.
132
+ if : github.event_name == 'pull_request_target'
134
133
with :
135
- ref : ${{github.event.pull_request.head.ref}}
136
- repository : ${{github.event.pull_request.head.repo.full_name}}
134
+ ref : refs/pull/${{ github.event.pull_request.number }}/merge
135
+
136
+ - name : Clone the connector
137
+ if : github.event_name != 'pull_request_target'
138
+ uses : actions/checkout@v2
137
139
138
140
- name : Setup Tarantool ${{ matrix.sdk-version }}
139
141
run : |
You can’t perform that action at this time.
0 commit comments