Skip to content

Commit

Permalink
Merge pull request #12 from awibox/develop
Browse files Browse the repository at this point in the history
#9: Debug was finished
  • Loading branch information
Andrei Arkhipov authored Jan 19, 2020
2 parents 7cd5c6c + 394311a commit 8e4812c
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,10 @@ if [[ -z "$BUILD_PATH" ]]; then
fi

if [[ -e $BUILD_PATH ]]; then
echo "$BUILD_PATH was found"
echo "$BUILD_PATH is correct"
else
echo "$BUILD_PATH not founded. You should run build"
fi

if [[ -e '$BUILD_PATH' ]]; then
echo "BUILD_PATH was found"
else
echo "BUILD_PATH not founded. You should run build"
echo "$BUILD_PATH not founded. You should run build (npm run build) or change build path name."
exit 1
fi

if [[ -z "$AUTHOR" ]]; then
Expand Down Expand Up @@ -48,10 +43,10 @@ if [ "$?" -ne 0 ]; then
fi

mkdir -p ${GITHUB_PAGE_NAME} || exit "$?"
cp -rf ${BASE_PATH}/${BUILD_PATH}/ ${GITHUB_PAGE_NAME} || exit "$?"
cp -rf ${BASE_PATH}/${BUILD_PATH}/. ${GITHUB_PAGE_NAME} || exit "$?"
cd ${GITHUB_PAGE_NAME} || exit "$?"

COMMIT_MESSAGE="${GITHUB_WORKFLOW} ${GITHUB_ACTION} from \"${GITHUB_REPOSITORY}\""
COMMIT_MESSAGE="${GITHUB_WORKFLOW}. Commit ${GITHUB_SHA} from \"${GITHUB_REPOSITORY}\""

if [ -z "$(git status --porcelain)" ]; then
echo "No changes detected "
Expand Down

0 comments on commit 8e4812c

Please sign in to comment.