Skip to content

Commit

Permalink
chore: T.Optional public key as its disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Sep 29, 2024
1 parent c29c8b0 commit 534d69a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ import { run } from "./run";
* Run the plugin as a GitHub Action instance.
*/
async function actionRun() {

const payloadEnv = {
SUPABASE_KEY: process.env.SUPABASE_KEY,
SUPABASE_URL: process.env.SUPABASE_URL,
UBIQUIBOT_PUBLIC_KEY: process.env.UBIQUIBOT_PUBLIC_KEY,
UBIQUIBOT_PUBLIC_KEY: process.env.UBIQUIBOT_PUBLIC_KEY || "temporarily-disabled",
};

const env = Value.Decode(envSchema, payloadEnv);
Expand Down
2 changes: 1 addition & 1 deletion src/types/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { StandardValidator } from "typebox-validators";
export const envSchema = T.Object({
SUPABASE_URL: T.String(),
SUPABASE_KEY: T.String(),
UBIQUIBOT_PUBLIC_KEY: T.String(),
UBIQUIBOT_PUBLIC_KEY: T.Optional(T.String()), // optional because it's currently disabled
});

export const envConfigValidator = new StandardValidator(envSchema);
Expand Down

0 comments on commit 534d69a

Please sign in to comment.