Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grouptest #115

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 9 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ YELLOW='\033[0;33m'
BLUE='\033[0;34m'
RED='\033[0;31m'

echo "::group::Install markdown-link-check"
npm i -g markdown-link-check@3.8.7
echo "::endgroup::"

declare -a FIND_CALL
declare -a COMMAND_DIRS COMMAND_FILES
declare -a COMMAND_FILES

echo "::group::Configuration"
USE_QUIET_MODE="$1"
USE_VERBOSE_MODE="$2"
CONFIG_FILE="$3"
Expand Down Expand Up @@ -46,6 +49,7 @@ echo -e "${BLUE}MAX_DEPTH: $5${NC}"
echo -e "${BLUE}CHECK_MODIFIED_FILES: $6${NC}"
echo -e "${BLUE}FILE_EXTENSION: $8${NC}"
echo -e "${BLUE}FILE_PATH: $9${NC}"
echo "::endgroup::"

handle_dirs () {

Expand Down Expand Up @@ -134,9 +138,11 @@ check_additional_files () {

FIND_CALL+=(';')

echo "::group::Command (Additional files)"
set -x
"${FIND_CALL[@]}" &>> error.txt
set +x
echo "::endgroup::"

fi

Expand Down Expand Up @@ -176,7 +182,7 @@ if [ "$CHECK_MODIFIED_FILES" = "yes" ]; then
done

check_additional_files

check_errors

else
Expand All @@ -191,9 +197,11 @@ else

FIND_CALL+=(';')

echo "::group::Command"
set -x
"${FIND_CALL[@]}" &>> error.txt
set +x
echo "::endgroup::"

check_additional_files

Expand Down