ci: check repo type directly in step

This commit is contained in:
Thales Macedo Garitezi 2022-08-31 17:04:45 -03:00
parent f3ca2b20ed
commit f95d9ca653
1 changed files with 2 additions and 10 deletions

View File

@ -39,16 +39,8 @@ jobs:
use-self-hosted: false use-self-hosted: false
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: set edition
id: set_edition
run: |
if make emqx-ee --dry-run > /dev/null 2>&1; then
echo "EDITION=enterprise" >> $GITHUB_ENV
else
echo "EDITION=opensource" >> $GITHUB_ENV
fi
- name: docker compose up - name: docker compose up
if: env.EDITION == 'opensource' if: endsWith(github.repository, 'emqx')
env: env:
MYSQL_TAG: 8 MYSQL_TAG: 8
REDIS_TAG: 6 REDIS_TAG: 6
@ -66,7 +58,7 @@ jobs:
-f .ci/docker-compose-file/docker-compose-redis-single-tcp.yaml \ -f .ci/docker-compose-file/docker-compose-redis-single-tcp.yaml \
up -d --build up -d --build
- name: docker compose up - name: docker compose up
if: env.EDITION == 'enterprise' if: endsWith(github.repository, 'emqx-enterprise')
env: env:
MYSQL_TAG: 8 MYSQL_TAG: 8
REDIS_TAG: 6 REDIS_TAG: 6