Skip to content

Commit

Permalink
fix: auto update workflow now pulls proper theme target enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Tormak9970 committed Jan 22, 2024
1 parent b7010fd commit 2bc00e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/checkForUpdates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ jobs:
const data = await response.json();
//? Check for New Targets
const listFromSchema = schema.properties.target.enum;
const listFromSchema = schema.definitions.ThemeTarget.enum;
const listFromApi = Object.keys(data.filters);
//TODO: check for differences
const listsAreEqual = listFromSchema.every((elem) => listFromApi.includes(elem)) && listFromApi.every((elem) => listFromSchema.includes(elem));
if (!listsAreEqual) {
newTargets = true;
schema.properties.target.enum = listFromApi;
schema.definitions.ThemeTarget.enum = listFromApi;
}
const themePyPath = path.join(cwdPath, "css-loader", "css_theme.py");
Expand All @@ -131,6 +131,7 @@ jobs:
if (currentVersion !== newVersion) {
newManifestVersion = true;
schema.default.manifest_version = newVersion;
schema.properties.manifest_version.description = `The manifest version. This should almost always be the latest version.\n\nLatest Version: ${newVersion}`;
schema.properties.manifest_version.const = newVersion;
}
Expand Down
2 changes: 1 addition & 1 deletion manifest-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"description": "Something to spice up your Steamdeck experience!",
"author": "You",
"version": "v1.0.0",
"manifest_version": 8,
"manifest_version": 9,
"target": "Home",
"tabs": {
"default": [
Expand Down

0 comments on commit 2bc00e9

Please sign in to comment.