Skip to content

Commit

Permalink
fix multi level BUILD_DIR issue (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
liudonghua123 authored Mar 11, 2020
1 parent fbffcbc commit 10c15d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ fi

echo "### Started deploy to $GITHUB_REPOSITORY/$TARGET_BRANCH"

cp -R $BUILD_DIR $HOME/$BUILD_DIR
# remove the ending slash if exists
BUILD_DIR=${BUILD_DIR%/}
mkdir -p $HOME/$BUILD_DIR
cp -R $BUILD_DIR/* $HOME/$BUILD_DIR/
cd $HOME
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "$EMAIL"
Expand Down

0 comments on commit 10c15d0

Please sign in to comment.