Skip to content

Commit 164a93c

Browse files
Copilothuangyiirene
andcommitted
Fix merge driver to properly handle Git merge protocol
Co-authored-by: huangyiirene <[email protected]>
1 parent be4b1bd commit 164a93c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
# Configure custom merge driver for pnpm-lock.yaml
3232
git config merge.pnpm-merge.name "pnpm-lock.yaml merge driver"
3333
git config merge.pnpm-merge.driver \
34-
"pnpm install --no-frozen-lockfile"
34+
"pnpm install --no-frozen-lockfile && cp pnpm-lock.yaml %A"
3535
3636
# Apply merge driver (CI-only, doesn't affect repository)
3737
echo "pnpm-lock.yaml merge=pnpm-merge" >> .git/info/attributes

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
# Configure custom merge driver for pnpm-lock.yaml
2222
git config merge.pnpm-merge.name "pnpm-lock.yaml merge driver"
2323
git config merge.pnpm-merge.driver \
24-
"pnpm install --no-frozen-lockfile"
24+
"pnpm install --no-frozen-lockfile && cp pnpm-lock.yaml %A"
2525
2626
# Apply merge driver (CI-only, doesn't affect repository)
2727
echo "pnpm-lock.yaml merge=pnpm-merge" >> .git/info/attributes

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# Configure custom merge driver for pnpm-lock.yaml
2020
git config merge.pnpm-merge.name "pnpm-lock.yaml merge driver"
2121
git config merge.pnpm-merge.driver \
22-
"pnpm install --no-frozen-lockfile"
22+
"pnpm install --no-frozen-lockfile && cp pnpm-lock.yaml %A"
2323
2424
# Apply merge driver (CI-only, doesn't affect repository)
2525
echo "pnpm-lock.yaml merge=pnpm-merge" >> .git/info/attributes

0 commit comments

Comments
 (0)