Skip to content

Commit

Permalink
fix: avoid error if .env does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
ilbertt committed Jan 6, 2025
1 parent 0a7119d commit 88afb82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/mainnet-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ jobs:
- name: Deploy to mainnet
run: dfx deploy --ic
env:
TELEGRAM_SECRET_TOKEN: ${{ secrets.TELEGRAM_SECRET_TOKEN }}
4 changes: 2 additions & 2 deletions scripts/build-canister.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash

set -e

source .env

set -e

echo -e "\nBuilding canister..."

TELEGRAM_SECRET_TOKEN=$TELEGRAM_SECRET_TOKEN \
Expand Down

0 comments on commit 88afb82

Please sign in to comment.