1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-08-01 16:38:02 +08:00
This commit is contained in:
Hai Liang Wang 2022-04-16 14:09:22 +08:00
parent cc1bc7aae0
commit c69481e813

View File

@ -1,19 +1,19 @@
name: PR Checks Package name: PR Checks Package
on: on:
pull_request: pull_request:
branches: [osc] branches: [osc]
types: [opened, synchronize, closed] types: [opened, synchronize, closed]
jobs: jobs:
build: build:
runs-on: [self-hosted, linux, cskefu] runs-on: [self-hosted, linux, cskefu]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
- run: | - run: |
cd $GITHUB_WORKSPACE && pwd cd $GITHUB_WORKSPACE && pwd
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 [ ! -d .git ]; then git init; git config user.email "you@dummy.com"; git config user.name "dummy"; git add --all && git commit -q -m "Only fix mvn goals for github workflow"; 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 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 java -version && mvn -version
$GITHUB_WORKSPACE/public/plugins/scripts/install-all.sh $GITHUB_WORKSPACE/public/plugins/scripts/install-all.sh
cd $GITHUB_WORKSPACE/contact-center && ./admin/package.sh cd $GITHUB_WORKSPACE/contact-center && ./admin/package.sh