From 742d0ede705b0c819d4a13d0f43d3cce07cfe832 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alain=20H=C3=A9la=C3=AFli?= Date: Wed, 16 Feb 2022 12:20:47 +0100 Subject: [PATCH] Warn instead of error --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 14aa7af4..cbec32af 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -74,8 +74,8 @@ elif [ -n "${INPUT_TOKEN}" ]; then "https://api.github.com/repos/${GITHUB_REPOSITORY}/pages") remote_branch=$(echo "$response" | awk -F'"' '/\"branch\"/ { print $4 }') if [ -z "${remote_branch}" ]; then - echo "::error::Cannot get GitHub Pages source branch via API." - echo "::error::${response}" + echo "::warning::Cannot get GitHub Pages source branch via API." + echo "::warning::${response}" else echo "::debug::using the branch ${remote_branch} set on the repo settings" fi