Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
Warn instead of error
Browse files Browse the repository at this point in the history
  • Loading branch information
helaili committed Feb 16, 2022
1 parent d94494b commit 742d0ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 742d0ed

Please sign in to comment.