Skip to content

Commit 6d5d908

Browse files
committed
fix(ci): avoid SIGPIPE from svn status | head under pipefail
1 parent a27d801 commit 6d5d908

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,9 @@ jobs:
206206
fi
207207
208208
echo "=== SVN Status (trunk) ==="
209-
svn status trunk | head -50
210-
CHANGES=$(svn status trunk | wc -l)
209+
svn status trunk > /tmp/svn-status.txt
210+
head -50 /tmp/svn-status.txt
211+
CHANGES=$(wc -l < /tmp/svn-status.txt)
211212
echo "Total trunk changes: ${CHANGES}"
212213
213214
if [ "${CHANGES}" -eq 0 ]; then

0 commit comments

Comments
 (0)