Skip to content

Commit 62fbb2a

Browse files
authored
Merge pull request #7 from T-Gro/T-Gro-patch-4
Update commands.yml
2 parents 817bdd1 + 357a84f commit 62fbb2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/commands.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
run: |
6565
echo "outcome=${{ steps.run-cmd.outcome }}" > result
6666
if [[ "${{ steps.run-cmd.outcome }}" == "success" ]]; then
67-
git diff > repo.patch || true
67+
git diff -U5 > repo.patch || true
6868
if [ -s repo.patch ]; then echo "hasPatch=true" >> result; else echo "hasPatch=false" >> result; fi
6969
else
7070
echo "hasPatch=false" >> result
@@ -111,7 +111,7 @@ jobs:
111111
- name: Apply and push patch
112112
if: ${{ steps.read-meta.outputs.step_outcome == 'success' && steps.read-meta.outputs.hasPatch == 'true' }}
113113
run: |
114-
git apply repo.patch
114+
git apply --3way repo.patch
115115
git config user.name "GH Actions"
116116
git config user.email "actions@github.com"
117117
git add -A

0 commit comments

Comments
 (0)