From 647b4bc63287f2b65a99be41174ef8a8b9afe4fe Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k Date: Wed, 1 Apr 2026 12:48:35 +0530 Subject: [PATCH] removed adapters for checking --- .github/workflows/ci.yml | 35 ++++------------------------------- 1 file changed, 4 insertions(+), 31 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aa6dbe2bc3..6eea312628 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -180,38 +180,11 @@ jobs: uses: actions/github-script@v8 with: script: | - const allDatabases = ['MariaDB', 'PostgreSQL', 'MongoDB']; - const allModes = ['dedicated', 'shared_v1', 'shared_v2']; + const allDatabases = ['MongoDB']; + const allModes = ['shared_v1', 'shared_v2']; - const defaultDatabases = ['MongoDB']; - const defaultModes = ['dedicated']; - - const pr = context.payload.pull_request; - if (!pr) { - core.setOutput('databases', JSON.stringify(allDatabases)); - core.setOutput('modes', JSON.stringify(allModes)); - return; - } - - const getContent = (ref) => github.rest.repos.getContent({ - owner: context.repo.owner, - repo: context.repo.repo, - path: 'composer.lock', - ref, - }); - - const getDbVersion = (lock) => lock.packages?.find(p => p.name === 'utopia-php/database')?.version; - - const [{ data: base }, { data: head }] = await Promise.all([ - getContent(pr.base.sha), - getContent(pr.head.sha), - ]); - - const decode = (content) => JSON.parse(Buffer.from(content, 'base64').toString()); - const databaseChanged = getDbVersion(decode(base.content)) !== getDbVersion(decode(head.content)); - - core.setOutput('databases', JSON.stringify(databaseChanged ? allDatabases : defaultDatabases)); - core.setOutput('modes', JSON.stringify(databaseChanged ? allModes : defaultModes)); + core.setOutput('databases', JSON.stringify(allDatabases)); + core.setOutput('modes', JSON.stringify(allModes)); build: name: Build