diff --git a/.github/workflows/ci-server.yaml b/.github/workflows/ci-server.yaml index f36f95d154c7..68bca941f1d6 100644 --- a/.github/workflows/ci-server.yaml +++ b/.github/workflows/ci-server.yaml @@ -64,7 +64,8 @@ jobs: if: steps.changed-files.outputs.any_changed == 'true' run: npx nx reset:env twenty-server - name: Server / Create DB - run: PGPASSWORD=twenty psql -h localhost -p 5432 -U twenty -d postgres -c "SELECT 'CREATE DATABASE test' WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'test')" + if: steps.changed-files.outputs.any_changed == 'true' + run: PGPASSWORD=twenty psql -h postgres -p 5432 -U twenty -d postgres -c "SELECT 'CREATE DATABASE test' WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'test')" - name: Worker / Run if: steps.changed-files.outputs.any_changed == 'true' run: npx nx run twenty-server:worker:ci