1 Commits

Author SHA1 Message Date
dependabot[bot]
5d82b2b838 chore(deps): bump actions/download-artifact
Bumps the github_actions group with 1 update in the /.github/workflows directory: [actions/download-artifact](https://github.com/actions/download-artifact).


Updates `actions/download-artifact` from 3 to 4.1.7
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v3...v4.1.7)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  dependency-group: github_actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-03 22:13:24 +00:00
3 changed files with 3 additions and 3 deletions

View File

@@ -127,7 +127,7 @@ jobs:
cache: '${{ env.NODE_CACHE }}'
node-version: '${{ env.NODE_VERSION }}'
scope: '${{ env.NODE_SCOPE }}'
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4.1.7
with:
name: lib
path: ./

View File

@@ -1,7 +1,7 @@
import { z } from 'zod';
const setLoadSchema = z.object({
id: z.string().optional(),
id: z.string(),
name: z.string().optional(),
script: z.string(),
});

View File

@@ -60,7 +60,7 @@ class LoadRepo extends EventEmitter<LoadRepoEvents> {
public set = async (options: SetLoadOptions) => {
const { database } = this.#options;
const db = await database.instance;
const id = options.id || `auto-id/${nanoid()}`;
const id = options.id || nanoid();
const script = createHash('sha256').update(options.script).digest('hex');
const scriptDir = resolve(this.#options.config.files.data, 'scripts');
await mkdir(scriptDir, { recursive: true });