Skip to content

Commit 593d8ff

Browse files
ci: fix preview pipeline
fix publish preview to get github pages functional again Signed-off-by: Jasper Berton <jasper.berton@team.blue>
1 parent 5c7a9b2 commit 593d8ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/preview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ jobs:
152152
run: |
153153
commit=$(git log --format="%H" -n 1)
154154
description=$(git describe --always)
155-
if git status --porcelain 2>/dev/null| grep -E "^??|^M"
156-
then
155+
git add -A
156+
if ! git diff --cached --quiet; then
157157
git add .
158158
git commit -m "gh-pages ${description} ${commit}"
159159
git push

0 commit comments

Comments
 (0)