Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored May 23, 2020
1 parent 96876e8 commit f8ffb2f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,25 @@ GITHUB_TOKEN=$1
CONFIG_PATH=$2
IGNORE_PATH=$3
TARGET_BRANCH=$GITHUB_BASE_REF
CURRENT_BRANCH=$GITHUB_HEAD_REF


echo "${GITHUB_TOKEN}"
echo "${CONFIG_PATH}"
echo "${IGNORE_PATH}"
echo "${TARGET_BRANCH}"
echo "${CURRENT_BRANCH}"
echo "${GITHUB_REPOSITORY}"
echo "----------------------"


git remote set-url origin https://$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY

echo "Getting base branch..."
git fetch --depth=1 origin +refs/heads/$TARGET_BRANCH:refs/remotes/origin/$TARGET_BRANCH

echo "Getting changed files..."

CHANGED_FILES=$(git diff --diff-filter=ACM --name-only $(git merge-base origin/$TARGET_BRANCH HEAD) | grep -E ".(js|jsx|ts|tsx)$$")

echo "## Running ESLint"
Expand Down

0 comments on commit f8ffb2f

Please sign in to comment.