chore: use unique artifact name

Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
Pranav C
2024-10-07 11:44:56 +05:30
parent 7b6811a786
commit e9d58b26ef
2 changed files with 9 additions and 4 deletions

View File

@@ -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

View File

@@ -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;