Skip to content

Commit

Permalink
fix path for generate_schemas workflow and run prettier on schems
Browse files Browse the repository at this point in the history
  • Loading branch information
lukpotSym committed Nov 27, 2023
1 parent 055a429 commit b471480
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/generate_schemas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 8 additions & 2 deletions support/scripts/schemas.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -79,7 +85,7 @@ async function main() {
}
java.forEach((file, path) => {
writeToFile(javaDir + path, file.lines);
})
});
}

main();
Expand Down

0 comments on commit b471480

Please sign in to comment.