Skip to content

Commit c83b711

Browse files
committed
Generate correct patch for codegen
1 parent 49e31cd commit c83b711

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/pr.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

actions/pr.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,12 @@ jobs:
163163
name: Collect some information
164164
run: |
165165
echo Collecting git patch
166-
git diff -p > /tmp/patch
166+
git add .
167+
168+
git config --global user.email "you@example.com"
169+
git config --global user.name "Your Name"
170+
git commit --message "temp"
171+
git show --patch > /tmp/patch
167172
- if: failure()
168173
name: Upload patch
169174
uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)