Skip to content

Commit 458b681

Browse files
committed
fixup! Implement previews for GitHub pull requests
1 parent 5b66051 commit 458b681

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/preview.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,14 @@ jobs:
5353
5454
- name: Create diff to current
5555
run: |
56-
diff -Nrwu --exclude search_index.json current/ preview/ > preview/diff.patch || true
57-
if [[ -s preview/diff.patch ]] ; then
56+
diff -Nrwu --exclude search_index.json current/ preview/ > diff.patch || true
57+
if [[ -s diff.patch ]] ; then
5858
sudo apt-get update
5959
sudo apt-get install -y diffstat python3-pygments
6060
61+
mv diff.patch preview/diff.patch
6162
pygmentize -o preview/diff.html -l diff -f html -O full preview/diff.patch
62-
diffstat -l -p2 preview/diff.patch > diff.txt
63+
diffstat -l -p1 preview/diff.patch > preview/diff.txt
6364
fi
6465
6566
- name: Download metadata artifact

0 commit comments

Comments
 (0)