From b4714807538cff5e580c3bb5099610a450d1503e Mon Sep 17 00:00:00 2001 From: Luka Potkonjak Date: Mon, 27 Nov 2023 14:12:48 +0100 Subject: [PATCH] fix path for generate_schemas workflow and run prettier on schems --- .github/workflows/generate_schemas.yml | 2 +- support/scripts/schemas.ts | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/generate_schemas.yml b/.github/workflows/generate_schemas.yml index 48cd57bf6..675f53c1e 100644 --- a/.github/workflows/generate_schemas.yml +++ b/.github/workflows/generate_schemas.yml @@ -68,5 +68,5 @@ jobs: uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 with: name: sdk-schemas-java - path: ${{ github.workspace }}/languages/java/src/main/java/bit/sdk/schema/* + path: ${{ github.workspace }}/languages/java/src/main/java/com/bitwarden/sdk/schema/* if-no-files-found: error diff --git a/support/scripts/schemas.ts b/support/scripts/schemas.ts index d220c680a..7181d6010 100644 --- a/support/scripts/schemas.ts +++ b/support/scripts/schemas.ts @@ -1,4 +1,10 @@ -import { quicktype, quicktypeMultiFile, InputData, JSONSchemaInput, FetchingJSONSchemaStore } from "quicktype-core"; +import { + quicktype, + quicktypeMultiFile, + InputData, + JSONSchemaInput, + FetchingJSONSchemaStore, +} from "quicktype-core"; import fs from "fs"; import path from "path"; @@ -79,7 +85,7 @@ async function main() { } java.forEach((file, path) => { writeToFile(javaDir + path, file.lines); - }) + }); } main();