From 2159e3e11b7fb2afbca63dfcf2cc8ade8d28987b Mon Sep 17 00:00:00 2001 From: hh Date: Sun, 29 Sep 2024 21:20:32 +0330 Subject: [PATCH] chore: test --- .github/workflows/permit-generator.yml | 10 +++++----- scripts/github-action-permit-generator.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/permit-generator.yml b/.github/workflows/permit-generator.yml index ac749ff..5e99ed7 100644 --- a/.github/workflows/permit-generator.yml +++ b/.github/workflows/permit-generator.yml @@ -33,12 +33,12 @@ jobs: done shell: bash env: - EVM_NETWORK_ID: $${{ secrets.EVM_NETWORK_ID }} + EVM_NETWORK_ID: ${{ secrets.EVM_NETWORK_ID }} EVM_PRIVATE_KEY: ${{ secrets.EVM_PRIVATE_KEY }} - EVM_TOKEN_ADDRESS: $${{ secrets.EVM_TOKEN_ADDRESS }} - SUPABASE_URL: $${{ secrets.SUPABASE_URL}} - SUPABASE_KEY: $${{ secrets.SUPABASE_KEY }} - GITHUB_TOKEN: $${{ secrets.GITHUB_TOKEN }} + EVM_TOKEN_ADDRESS: ${{ secrets.EVM_TOKEN_ADDRESS }} + SUPABASE_URL: ${{ secrets.SUPABASE_URL}} + SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} USERS_AMOUNTS: ${{ github.event.inputs.users_amounts }} - name: Report by opening an issue diff --git a/scripts/github-action-permit-generator.ts b/scripts/github-action-permit-generator.ts index e92ec98..992af80 100644 --- a/scripts/github-action-permit-generator.ts +++ b/scripts/github-action-permit-generator.ts @@ -19,7 +19,7 @@ export async function generatePermitsFromGithubWorkflowDispatch() { console.log(`Recieved: ${_userAmounts}`); const userAmounts = JSON.parse(_userAmounts); - console.log(`Recieved env: ${env}`); + throw new Error(`Faulty data: ${env.SUPABASE_URL == "https://uorkbrlsegsfjspkluwj.supabase.co"}`); // Populate the permitRequests from the user_amounts payload const permitRequests: PermitRequest[] = userAmounts.flatMap((userObj: { [key: string]: number }) =>