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
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
retention-days: 1
@ -141,14 +141,14 @@ jobs:
steps:
- uses: actions/download-artifact@master
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
- name: Upload executables(except mac executables) to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.NC_GITHUB_TOKEN_TEMP }}
file: mac-dist/**
file: packages/nc-secret-mgr/mac-dist/**
tag: ${{ github.event.inputs.tag || inputs.tag }}
overwrite: 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')
.first()
.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;
res = { projectsMeta, projectsExt, impacted, nc_db_type, created };
res = { projectsMeta, projectsExt, impacted, nc_db_type, created, files };
await NocoCache.set(CacheScope.INSTANCE_META, res);
}
return res;

Loading…
Cancel
Save