Browse Source

chore: use unique artifact name

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/9594/head
Pranav C 2 months ago
parent
commit
e9d58b26ef
  1. 6
      .github/workflows/release-secret-cli.yml
  2. 7
      packages/nocodb/src/utils/getInstance.ts

6
.github/workflows/release-secret-cli.yml

@ -130,7 +130,7 @@ jobs:
- uses: actions/upload-artifact@master - uses: actions/upload-artifact@master
with: with:
name: ${{ github.event.inputs.tag || inputs.tag }} name: ${{ format('{0}-signed', github.event.inputs.tag || inputs.tag) }}
path: packages/nc-secret-mgr/mac-dist path: packages/nc-secret-mgr/mac-dist
retention-days: 1 retention-days: 1
@ -141,14 +141,14 @@ jobs:
steps: steps:
- uses: actions/download-artifact@master - uses: actions/download-artifact@master
with: with:
name: ${{ github.event.inputs.tag || inputs.tag }} name: ${{ format('{0}-signed', github.event.inputs.tag || inputs.tag) }}
path: packages/nc-secret-mgr/mac-dist path: packages/nc-secret-mgr/mac-dist
- name: Upload executables(except mac executables) to release - name: Upload executables(except mac executables) to release
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
with: with:
repo_token: ${{ secrets.NC_GITHUB_TOKEN_TEMP }} repo_token: ${{ secrets.NC_GITHUB_TOKEN_TEMP }}
file: mac-dist/** file: packages/nc-secret-mgr/mac-dist/**
tag: ${{ github.event.inputs.tag || inputs.tag }} tag: ${{ github.event.inputs.tag || inputs.tag }}
overwrite: true overwrite: true
file_glob: true file_glob: true

7
packages/nocodb/src/utils/getInstance.ts

@ -34,10 +34,15 @@ export default async function (force = false, ncMeta = Noco.ncMeta) {
.where('key', 'nc_server_id') .where('key', 'nc_server_id')
.first() .first()
.then((c) => c.created_at); .then((c) => c.created_at);
const files = await ncMeta
.knex(MetaTable.FILE_REFERENCES)
.count('id as count')
.first()
.then((c) => c.count);
const nc_db_type = Noco.getConfig()?.meta?.db?.client; const nc_db_type = Noco.getConfig()?.meta?.db?.client;
res = { projectsMeta, projectsExt, impacted, nc_db_type, created }; res = { projectsMeta, projectsExt, impacted, nc_db_type, created, files };
await NocoCache.set(CacheScope.INSTANCE_META, res); await NocoCache.set(CacheScope.INSTANCE_META, res);
} }
return res; return res;

Loading…
Cancel
Save