Skip to content

Commit e6f2efe

Browse files
authored
fix: env CI access + logs (#99)
1 parent 61e1424 commit e6f2efe

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/fetch-data.yml

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
jobs:
99
fetch-data:
1010
runs-on: ubuntu-latest
11+
env:
12+
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}
13+
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
1114
steps:
1215
- uses: actions/checkout@v4
1316
- uses: oven-sh/setup-bun@v1

script/main.sh

+13
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@ if [ -f "$repoRoot/.env" ]; then
88
source "$repoRoot/.env"
99
fi
1010

11+
if [ -n "${INFURA_API_KEY:-}" ]; then
12+
echo "INFURA_API_KEY exists"
13+
else
14+
echo "INFURA_API_KEY does not exist"
15+
fi
16+
17+
# Log "alchemy exists"
18+
if [ -n "${ALCHEMY_API_KEY:-}" ]; then
19+
echo "ALCHEMY_API_KEY exists"
20+
else
21+
echo "ALCHEMY_API_KEY does not exist"
22+
fi
23+
1124
# Function to handle final preparation steps.
1225
final_preparation() {
1326
local exitStatus=$?

0 commit comments

Comments
 (0)