Skip to content

Commit

Permalink
fix: remove the env decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
hhio618 committed Sep 29, 2024
1 parent 0fdcf5c commit 3282ea7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/github-action-permit-generator.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
import * as github from "@actions/github";
import { Octokit } from "@octokit/rest";
import { Value } from "@sinclair/typebox/value";
import { createClient } from "@supabase/supabase-js";
import { createAdapters } from "../src/adapters";
import { Database } from "../src/adapters/supabase/types/database";
import { generatePayoutPermit } from "../src/handlers";
import { Context } from "../src/types/context";
import { envSchema } from "../src/types/env";
import { PermitGenerationSettings, PermitRequest } from "../src/types/plugin-input";

/**
* Generates all the permits based on the current github workflow dispatch.
*/
export async function generatePermitsFromGithubWorkflowDispatch() {
const env = Value.Decode(envSchema, process.env);
const env = process.env;

const webhookPayload = github.context.payload.inputs;
const userAmounts = JSON.parse(webhookPayload.user_amounts);
Expand Down

0 comments on commit 3282ea7

Please sign in to comment.