Skip to content

Commit a395dd0

Browse files
committed
CI: avoid conflicts when rebasing the PR for linting
Prefer the changes that were accepted in main over what is in the branch, as the conflict will generally arise from an outdated base: the conflicting changes are simply older versions of the file, and replaying the whole history would eventually give the same result.
1 parent 5868e96 commit a395dd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
git fetch origin ${{ github.base_ref }}
6969
git checkout ${{ github.base_ref }}
7070
git checkout $pr_head
71-
git rebase ${{ github.base_ref }}
71+
git rebase ${{ github.base_ref }} -X ours
7272
- uses: typst/[email protected]
7373
with:
7474
installation-id: ${{ secrets.GH_INSTALLATION_ID }}

0 commit comments

Comments
 (0)