Skip to content

Commit

Permalink
Update imploded overrides $schema
Browse files Browse the repository at this point in the history
  • Loading branch information
bibixx committed Jul 1, 2024
1 parent 5ec8932 commit 0c546d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/validate_and_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
working-directory: scripts
run: bun run validate

- name: Update .gitignore
working-directory: scripts
run: echo '!overrides/*' >> .gitignore

- name: Push to gh-pages branch
uses: JamesIves/github-pages-deploy-action@v4
with:
Expand Down
3 changes: 1 addition & 2 deletions scripts/implodeOverrides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ async function processSubject(subjectId: string) {
outData.data.push(fileContents);
}

const { base: schemaFileName } = parse(outData.$schema);
const schemaAbsolutePath = join(schemasJSONFolder, schemaFileName);
const schemaAbsolutePath = join(schemasJSONFolder, "subject-override.json");
const schemaPath = relative(overridesPath, schemaAbsolutePath);
outData.$schema = schemaPath;

Expand Down

0 comments on commit 0c546d3

Please sign in to comment.