diff --git a/.github/workflows/validate_and_build.yaml b/.github/workflows/validate_and_build.yaml index 9afa0b7..05438b5 100644 --- a/.github/workflows/validate_and_build.yaml +++ b/.github/workflows/validate_and_build.yaml @@ -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: diff --git a/scripts/implodeOverrides.ts b/scripts/implodeOverrides.ts index 2c06eeb..62673f2 100644 --- a/scripts/implodeOverrides.ts +++ b/scripts/implodeOverrides.ts @@ -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;