From cc1bc7aae0a9de4a453a1c22f4c46e04c7eddc9b Mon Sep 17 00:00:00 2001 From: Hai Liang Wang Date: Sat, 16 Apr 2022 14:01:58 +0800 Subject: [PATCH] https://github.com/chatopera/cskefu/issues/688 fix mvn cli issue --- .github/workflows/pr_checks_package.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr_checks_package.yml b/.github/workflows/pr_checks_package.yml index e73dcd81..16a33d23 100644 --- a/.github/workflows/pr_checks_package.yml +++ b/.github/workflows/pr_checks_package.yml @@ -12,7 +12,8 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} - run: | cd $GITHUB_WORKSPACE && pwd - if [ -f ~/.cskefu.rc ]; then source ~/.cskefu.rc; else echo "Not found ~/.cskefu.rc; find info with https://github.com/chatopera/cskefu/issues/688"; exit 1 fi + if [ ! -d .git ]; then git init; git config user.email "you@dummy.com"; git config user.name "dummy"; git add --all && git commit -m "empty"; fi + if [ -f ~/.cskefu.rc ]; then source ~/.cskefu.rc; else echo "Not found ~/.cskefu.rc; find info with https://github.com/chatopera/cskefu/issues/688"; exit 1; fi java -version && mvn -version $GITHUB_WORKSPACE/public/plugins/scripts/install-all.sh cd $GITHUB_WORKSPACE/contact-center && ./admin/package.sh \ No newline at end of file