diff --git a/backend/migrations/20240212114028_update_hub_sync.down.sql b/backend/migrations/20240212114028_update_hub_sync.down.sql
new file mode 100644
index 0000000000..d2f607c5b8
--- /dev/null
+++ b/backend/migrations/20240212114028_update_hub_sync.down.sql
@@ -0,0 +1 @@
+-- Add down migration script here
diff --git a/backend/migrations/20240212114028_update_hub_sync.up.sql b/backend/migrations/20240212114028_update_hub_sync.up.sql
new file mode 100644
index 0000000000..cb830002d1
--- /dev/null
+++ b/backend/migrations/20240212114028_update_hub_sync.up.sql
@@ -0,0 +1,16 @@
+-- Add up migration script here
+-- Add up migration script here
+UPDATE script SET content = 'import wmill from "https://deno.land/x/wmill@v1.268.0/main.ts";
+export async function main() {
+ await run(
+ "workspace", "add", "__automation", "admins", Deno.env.get("BASE_INTERNAL_URL") + "/", "--token", Deno.env.get("WM_TOKEN"));
+
+ await run("hub", "pull");
+}
+
+async function run(...cmd: string[]) {
+ console.log("Running \"" + cmd.join('' '') + "\"");
+ await wmill.parse(cmd);
+}', summary = 'Synchronize Hub Resource types with instance',
+description = 'Sync latest resource types from hub to share to every workspace. Recommended to run at least once. On a schedule by default.'
+WHERE hash = -28028598712388162 AND workspace_id = 'admins';
\ No newline at end of file
diff --git a/frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte b/frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte
index 59b772cb07..9f971ce534 100644
--- a/frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte
+++ b/frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte
@@ -1115,8 +1115,8 @@
- For the git repo to be representative of the entire workspace, it is recommended to set
- it up using the Windmill CLI before turning this option on.
+ . For the git repo to be representative of the entire workspace, it is recommended to
+ set it up using the Windmill CLI before turning this option on.