Skip to content

Commit 33a041c

Browse files
authored
CICD: Use specified openssl. Add crash case. (#21)
1 parent e4cb313 commit 33a041c

File tree

3 files changed

+285
-49
lines changed

3 files changed

+285
-49
lines changed

.github/workflows/format-patch.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ PR_URL="https://github.com/ossrs/ffmpeg-webrtc/pull/$PR_NUMBER"
2727
echo "Fetching PR #$PR_NUMBER from $PR_URL"
2828

2929
PR_DATA=$(curl -s "https://api.github.com/repos/ossrs/ffmpeg-webrtc/pulls/$PR_NUMBER")
30-
REPO_NAME=$(echo "$PR_DATA" | jq -r '.head.repo.full_name')
31-
BRANCH_NAME=$(echo "$PR_DATA" | jq -r '.head.ref')
30+
REPO_NAME=$(printf '%s' "$PR_DATA" | jq -r '.head.repo.full_name')
31+
BRANCH_NAME=$(printf '%s' "$PR_DATA" | jq -r '.head.ref')
3232
if [[ -z "$REPO_NAME" || -z "$BRANCH_NAME" ]]; then
3333
echo "Error: REPO_NAME or BRANCH_NAME is empty!"
3434
exit 1
3535
fi
3636
echo "Repository: $REPO_NAME, Branch: $BRANCH_NAME"
3737

38-
PR_TITLE=$(echo "$PR_DATA" | jq -r '.title')
39-
PR_DESCRIPTION=$(echo "$PR_DATA" | jq -r '.body // ""')
38+
PR_TITLE=$(printf '%s' "$PR_DATA" | jq -r '.title')
39+
PR_DESCRIPTION=$(printf '%s' "$PR_DATA" | jq -r '.body // ""')
4040
if [[ -z "$PR_TITLE" ]]; then
4141
echo "Error: PR title is empty!"
4242
exit 1

0 commit comments

Comments
 (0)