chore(CI): fix skip test for slim build on enterprise repo

This commit is contained in:
zhanghongtong 2021-03-31 23:45:10 +08:00 committed by tigercl
parent e3c2461e54
commit eb56e5462d
1 changed files with 5 additions and 3 deletions

View File

@ -20,16 +20,18 @@ jobs:
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: build packages - name: prepare
run: | run: |
if make emqx-ee --dry-run > /dev/null 2>&1; then if make emqx-ee --dry-run > /dev/null 2>&1; then
echo "https://ci%40emqx.io:${{ secrets.CI_GIT_TOKEN }}@github.com" > $HOME/.git-credentials echo "https://ci%40emqx.io:${{ secrets.CI_GIT_TOKEN }}@github.com" > $HOME/.git-credentials
git config --global credential.helper store git config --global credential.helper store
echo "${{ secrets.CI_GIT_TOKEN }}" >> ./scripts/git-token echo "${{ secrets.CI_GIT_TOKEN }}" >> ./scripts/git-token
make emqx-ee-pkg echo "EMQX_NAME=emqx-ee" >> $GITHUB_ENV
else else
make emqx-pkg echo "EMQX_NAME=emqx" >> $GITHUB_ENV
fi fi
- name: build packages
run: make ${EMQX_NAME}-pkg
- name: pakcages test - name: pakcages test
run: | run: |
export CODE_PATH=$GITHUB_WORKSPACE export CODE_PATH=$GITHUB_WORKSPACE