diff --git a/.github/workflows/health-check.yml b/.github/workflows/health-check.yml index e21016a..7516d62 100644 --- a/.github/workflows/health-check.yml +++ b/.github/workflows/health-check.yml @@ -18,3 +18,9 @@ jobs: uses: gitleaks/gitleaks-action@v2 env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + + Test: + runs-on: ubuntu-latest + steps: + - name: Run install script + run: CI=true /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/YasminTeles/dotfiles/HEAD/install.sh)" diff --git a/install.sh b/install.sh index f9f9f75..f04c2cb 100644 --- a/install.sh +++ b/install.sh @@ -11,8 +11,12 @@ function step_msg { } # -- Get some information ----------------------------------------------------- -printf "Please enter some information.\n" -read -p "What is your email? " GIT_EMAIL +if [ "$CI" = true ] ; then + GIT_EMAIL=name@mail.com +else + printf "Please enter some information.\n" + read -p "What is your email? " GIT_EMAIL +fi printf "\nPlease wait! It will configure your environment.\n"