Skip to content

Commit

Permalink
fix: env CI access + logs (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
mds1 authored Feb 12, 2025
1 parent 61e1424 commit e6f2efe
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/fetch-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
jobs:
fetch-data:
runs-on: ubuntu-latest
env:
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
Expand Down
13 changes: 13 additions & 0 deletions script/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@ if [ -f "$repoRoot/.env" ]; then
source "$repoRoot/.env"
fi

if [ -n "${INFURA_API_KEY:-}" ]; then
echo "INFURA_API_KEY exists"
else
echo "INFURA_API_KEY does not exist"
fi

# Log "alchemy exists"
if [ -n "${ALCHEMY_API_KEY:-}" ]; then
echo "ALCHEMY_API_KEY exists"
else
echo "ALCHEMY_API_KEY does not exist"
fi

# Function to handle final preparation steps.
final_preparation() {
local exitStatus=$?
Expand Down

0 comments on commit e6f2efe

Please sign in to comment.