diff --git a/.github/workflows/error-db.yml b/.github/workflows/error-db.yml index 95baaa6ea..f04e7a6e5 100644 --- a/.github/workflows/error-db.yml +++ b/.github/workflows/error-db.yml @@ -41,7 +41,7 @@ jobs: - name: Transform JSON id: transform-json run: | - RESULT=$(echo ${JSON_DATA} | jq -s -c ".repository.discussion") + RESULT=$(echo ${JSON_DATA} | jq -c '.repository.discussion | .comments = .comments.totalCount') echo "::set-output name=result::${RESULT}" env: JSON_DATA: ${{ steps.query-data.outputs.result }}