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 @@ -114,14 +114,16 @@ jobs:
114
114
115
115
steps :
116
116
- name : Clone the connector
117
+ # `ref` as merge request is needed for pull_request_target because this
118
+ # target runs in the context of the base commit of the pull request.
117
119
uses : actions/checkout@v2
118
- # This is needed for pull_request_target because this event runs in the
119
- # context of the base commit of the pull request. It works fine for
120
- # `push` and `workflow_dispatch` because the default behavior is used
121
- # if `ref` and `repository` are empty.
120
+ if : github.event_name == 'pull_request_target'
122
121
with :
123
- ref : ${{github.event.pull_request.head.ref}}
124
- repository : ${{github.event.pull_request.head.repo.full_name}}
122
+ ref : refs/pull/${{ github.event.pull_request.number }}/merge
123
+
124
+ - name : Clone the connector
125
+ if : github.event_name != 'pull_request_target'
126
+ uses : actions/checkout@v2
125
127
126
128
- name : Install tarantool ${{ matrix.tarantool }}
127
129
run : |
You can’t perform that action at this time.
0 commit comments