Skip to content

Commit

Permalink
chore: remove server post and host env
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Sep 3, 2024
1 parent fdb01f2 commit 96990a5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/compute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ jobs:
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }}

BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
BOT_MODE: ${{ secrets.BOT_MODE }}
BOT_ADMINS: ${{ secrets.BOT_ADMINS }}
BOT_WEBHOOK: ${{ secrets.BOT_WEBHOOK }}
BOT_WEBHOOK_SECRET: ${{ secrets.BOT_WEBHOOK_SECRET }}

TELEGRAM_APP_ID: ${{ secrets.TELEGRAM_APP_ID }}
TELEGRAM_API_HASH: ${{ secrets.TELEGRAM_API_HASH }}

LOG_LEVEL: ${{ secrets.LOG_LEVEL }}
DEBUG: ${{ secrets.DEBUG }}

steps:
- uses: actions/checkout@v4
Expand All @@ -42,3 +54,15 @@ jobs:
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }}

BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
BOT_MODE: ${{ secrets.BOT_MODE }}
BOT_ADMINS: ${{ secrets.BOT_ADMINS }}
BOT_WEBHOOK: ${{ secrets.BOT_WEBHOOK }}
BOT_WEBHOOK_SECRET: ${{ secrets.BOT_WEBHOOK_SECRET }}

TELEGRAM_APP_ID: ${{ secrets.TELEGRAM_APP_ID }}
TELEGRAM_API_HASH: ${{ secrets.TELEGRAM_API_HASH }}

LOG_LEVEL: ${{ secrets.LOG_LEVEL }}
DEBUG: ${{ secrets.DEBUG }}
2 changes: 0 additions & 2 deletions src/types/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ export const env = T.Object({
DEBUG: T.Transform(T.Union([T.String(), T.Boolean()])).Decode((str) => str === "true" || str === "false" ? str === "true" : str).Encode((bool) => bool.toString()),
BOT_WEBHOOK: T.String(),
BOT_WEBHOOK_SECRET: T.String(),
SERVER_HOST: T.String(),
SERVER_PORT: T.Transform(T.Unknown()).Decode((str) => Number(str)).Encode((num) => num.toString()),
BOT_ADMINS: T.Transform(T.Unknown()).Decode((str) => Array.isArray(str) ? str.map(Number) : [Number(str)]).Encode((arr) => arr.toString()),
ALLOWED_UPDATES: T.Optional(T.Array(T.KeyOf(allowedUpdates))),
SUPABASE_URL: T.String(),
Expand Down

0 comments on commit 96990a5

Please sign in to comment.