diff --git a/.github/workflows/comment_coverage.yaml b/.github/workflows/comment_coverage.yaml index b92b56f..797346c 100644 --- a/.github/workflows/comment_coverage.yaml +++ b/.github/workflows/comment_coverage.yaml @@ -43,8 +43,7 @@ jobs: -Wmissing_docs \ 2>&1 \ | awk -F"[\` ]" \ - '/warning: `.+?` \(lib\) generated [0-9]+ warning[s]?/ { print $3 ": " $7 }' \ - | sort + '/warning: `.+?` \(lib\) generated [0-9]+ warning[s]?/ { print "::set-output name=" $3 "::" $7 }' - name: Checkout target branch uses: actions/checkout@v2 @@ -63,11 +62,14 @@ jobs: -Wmissing_docs \ 2>&1 \ | awk -F"[\` ]" \ - '/warning: `.+?` \(lib\) generated [0-9]+ warning[s]?/ { print $3 ": " $7 }' \ - | sort + '/warning: `.+?` \(lib\) generated [0-9]+ warning[s]?/ { print "::set-output name=" $3 "::" $7 }' - name: Compare comment coverage run: | + echo "test abc" + for oput in ${{ steps.missing_docs_warnings_target.outputs }}; do + echo "$oput" + done IFS=$'\n' read -rd '' -a missing_docs_warnings_pr_arr <<< "${{steps.missing_docs_warnings_pr.outcome}}" IFS=$'\n' read -rd '' -a missing_docs_warnings_target_arr <<< "${{steps.missing_docs_warnings_target.outcome}}" for pr_warnings_line in "${missing_docs_warnings_pr_arr[@]}"