* Add auto-invite superadmins workspace
* Revert "Add auto-invite superadmins workspace"
This reverts commit 768ae31857.
* Add Admin Workspace
* Show unable to delete info in UI
* Add Hub sync
* Update Migration
* Add Starter workspace
* Add workspace_key for admins workspace
* Remove schedule
* Update CI
20 lines
876 B
SQL
20 lines
876 B
SQL
INSERT INTO script(workspace_id, created_by, content, schema, summary, description, path, hash, language, lock) VALUES (
|
|
'admins',
|
|
'system',
|
|
'import wmill from "https://deno.land/x/wmill@v1.55.0/main.ts";
|
|
|
|
export async function main() {
|
|
await run(
|
|
"workspace", "add", "__automation", "starter", Deno.env.get("WM_BASE_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);
|
|
}',
|
|
'{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"required":[],"type":"object"}',
|
|
'Syncronize Hub Resource types with starter workspace',
|
|
'Basic administrative script to sync latest resource types from hub. Recommended to run at least once. On a schedule by default.',
|
|
'u/admin/hub_sync', -28028598712388162, 'deno', ''); |