Skip to content

Commit 8c0e33a

Browse files
committed
CI: use rebasing instead of merge.
This reflects what we actually do when we apply the commit, and also means we can easily iterate the commits. Signed-off-by: Rusty Russell <[email protected]>
1 parent 5e6405c commit 8c0e33a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ jobs:
3232
uses: actions/checkout@v3
3333
with:
3434
ref: ${{ github.event.pull_request.head.sha }}
35+
fetch-depth: 0
36+
37+
- name: Rebase
38+
run: |
39+
git config user.name github-actions
40+
git config user.email [email protected]
41+
git fetch origin ${{ github.base_ref }}
42+
git rebase origin/${{ github.base_ref }}
3543
3644
- name: Set up Python 3.7
3745
uses: actions/setup-python@v4
@@ -50,7 +58,7 @@ jobs:
5058
- name: Configure
5159
run: ./configure
5260
- name: Check source
53-
run: make -j 4 check-source
61+
run: make -j 4 check-source BASE_REF="origin/${{ github.base_ref }}"
5462
- name: Check Generated Files have been updated
5563
run: make -j 4 check-gen-updated
5664
- name: Check docs

0 commit comments

Comments
 (0)