From dd1be49d5f7017b8b4ff1e8d52c0e632e42585c0 Mon Sep 17 00:00:00 2001 From: Yakun Xu Date: Wed, 27 May 2020 01:21:14 +0800 Subject: [PATCH] [script] suppress GitHub Actions check annotations (#5001) --- bootstrap | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bootstrap b/bootstrap index b91f74894..881f2c501 100755 --- a/bootstrap +++ b/bootstrap @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2016, The OpenThread Authors. # All rights reserved. @@ -38,4 +38,8 @@ nlbuild_autotools_stem="third_party/nlbuild-autotools/repo" abs_srcdir=$(cd "$(dirname "${0}")" && pwd) -(cd "$abs_srcdir" && exec "$abs_srcdir/$nlbuild_autotools_stem/scripts/bootstrap" -I "$abs_srcdir/$nlbuild_autotools_stem" "${@}") +# filter out knowning information from stderr which is causing GitHub annotation check warnings. +(cd "$abs_srcdir" && exec "$abs_srcdir/$nlbuild_autotools_stem/scripts/bootstrap" -I "$abs_srcdir/$nlbuild_autotools_stem" "${@}") 2> \ + >(grep -v "installing 'third_party/nlbuild-autotools/repo/third_party/autoconf/missing'" \ + | grep -v "installing 'third_party/nlbuild-autotools/repo/third_party/autoconf/compile'" \ + | grep -v "installing 'third_party/nlbuild-autotools/repo/third_party/autoconf/depcomp'" 1>&2)