diff --git a/.github/workflows/backtrace-commit-fix.yml b/.github/workflows/backtrace-commit-fix.yml index c51f986767..ee1923e885 100644 --- a/.github/workflows/backtrace-commit-fix.yml +++ b/.github/workflows/backtrace-commit-fix.yml @@ -17,10 +17,10 @@ jobs: BODY: ${{ github.event.issue.body }} id: fix run: | - changed_body=$(echo "$BODY" | sed '/commit<\/strong>/,/<\/li>/ s/\(\)\(.*\)\(<\/code>\)/\2/g') + changed_body=$(echo "$BODY" | sed '/commit<\/strong>/,/<\/li>/ s/\([0-9a-f]\{7,\}\)<\/code>/\1/') if [[ "$changed_body" == "$BODY" ]]; then echo "Unable to match the Backtrace report format." exit 1 fi echo "$changed_body" >> body.txt - gh issue edit $ISSUE --body-file body.txt \ No newline at end of file + gh issue edit $ISSUE --body-file body.txt