@@ -103,12 +103,7 @@ jobs:
103
103
go-version : ' ${{ env.GO_VERSION }}'
104
104
105
105
- name : fetch and rebase on ${{ github.base_ref }}
106
- run : |
107
- git remote add upstream https://github.com/${{ github.repository }}
108
- git fetch upstream
109
- export GIT_COMMITTER_EMAIL="[email protected] "
110
- export GIT_COMMITTER_NAME="LND CI"
111
- git rebase upstream/${{ github.base_ref }}
106
+ uses : ./.github/actions/rebase
112
107
113
108
- name : check commits
114
109
run : scripts/check-each-commit.sh upstream/${{ github.base_ref }}
@@ -200,6 +195,12 @@ jobs:
200
195
steps :
201
196
- name : git checkout
202
197
uses : actions/checkout@v3
198
+ with :
199
+ fetch-depth : 0
200
+
201
+ - name : fetch and rebase on ${{ github.base_ref }}
202
+ if : github.event_name == 'pull_request'
203
+ uses : ./.github/actions/rebase
203
204
204
205
- name : git checkout fuzzing seeds
205
206
uses : actions/checkout@v3
@@ -266,6 +267,12 @@ jobs:
266
267
steps :
267
268
- name : git checkout
268
269
uses : actions/checkout@v3
270
+ with :
271
+ fetch-depth : 0
272
+
273
+ - name : fetch and rebase on ${{ github.base_ref }}
274
+ if : github.event_name == 'pull_request'
275
+ uses : ./.github/actions/rebase
269
276
270
277
- name : setup go ${{ env.GO_VERSION }}
271
278
uses : ./.github/actions/setup-go
@@ -311,6 +318,12 @@ jobs:
311
318
steps :
312
319
- name : git checkout
313
320
uses : actions/checkout@v3
321
+ with :
322
+ fetch-depth : 0
323
+
324
+ - name : fetch and rebase on ${{ github.base_ref }}
325
+ if : github.event_name == 'pull_request'
326
+ uses : ./.github/actions/rebase
314
327
315
328
- name : setup go ${{ env.GO_VERSION }}
316
329
uses : ./.github/actions/setup-go
@@ -349,6 +362,12 @@ jobs:
349
362
steps :
350
363
- name : git checkout
351
364
uses : actions/checkout@v3
365
+ with :
366
+ fetch-depth : 0
367
+
368
+ - name : fetch and rebase on ${{ github.base_ref }}
369
+ if : github.event_name == 'pull_request'
370
+ uses : ./.github/actions/rebase
352
371
353
372
- name : setup go ${{ env.GO_VERSION }}
354
373
uses : ./.github/actions/setup-go
0 commit comments