Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FreeRTOS/FreeRTOS-Kernel.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikhil Kamath <110539926+amazonKamath@users.noreply.github.com>2023-03-02 21:06:57 +0300
committerGitHub <noreply@github.com>2023-03-02 21:06:57 +0300
commit97acc2e54a5aa7e1e47250f76b30627880255fb0 (patch)
tree757cfa00a019f9ed98630637bce030aabb27bf47 /.github
parenta9e1f668497b9832edd4f1a85a1d37f4e8409cf9 (diff)
Introduced code coverage status badge (#635)
* Introduced code coverage status badge * Trying to fix the URL checker issue * Fix URL check Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com> --------- Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com> Co-authored-by: Gaurav Aggarwal <aggarg@amazon.com> Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
Diffstat (limited to '.github')
-rwxr-xr-x.github/actions/url_verifier.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/.github/actions/url_verifier.sh b/.github/actions/url_verifier.sh
index 4c8aed53b..e9804657b 100755
--- a/.github/actions/url_verifier.sh
+++ b/.github/actions/url_verifier.sh
@@ -28,13 +28,14 @@ function test {
for UNIQ_URL in ${!dict[@]} # loop urls
do
- CURL_RES=$(curl -si --user-agent "$(USER_AGENT)" ${UNIQ_URL} 2>/dev/null| head -n 1 | cut -f 2 -d ' ')
+ CURL_RES=$(curl -si --user-agent "${USER_AGENT}" ${UNIQ_URL} 2>/dev/null| head -n 1 | cut -f 2 -d ' ')
RES=$?
+ echo "================================="
+ echo "Checking URL: ${UNIQ_URL}"
+
if [ "${CURL_RES}" == '' -o "${CURL_RES}" != '200' ]
then
- echo "URL is: ${UNIQ_URL}"
- echo "File names: ${dict[$UNIQ_URL]}"
if [ "${CURL_RES}" == '' ] # curl returned an error
then
CURL_RES=$RES
@@ -47,8 +48,10 @@ function test {
else
echo WARNING: Result is: "${CURL_RES}"
fi
- echo "================================="
+ else
+ echo SUCCESS: Result is: "${CURL_RES}"
fi
+ echo "================================="
done
if [ "${SCRIPT_RET}" -eq 0 ]