Skip to content

Commit 75e1817

Browse files
mouseless0xclaude
andcommitted
chore(workflow): simplify database configuration
- Pass DATABASE_URL to the generation step via the step environment instead of writing a temporary .env file; the script reads process.env directly and dotenv is a no-op when no .env is present Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 2065fba commit 75e1817

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/update-docs-data.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ jobs:
5151
working-directory: docs-data-updater
5252
run: pnpm build
5353

54-
- name: Create .env file with database credentials
55-
working-directory: docs-data-updater
56-
run: |
57-
echo "DATABASE_URL=${{ secrets.DATABASE_URL }}" > .env
58-
5954
- name: Install ORAS CLI
6055
run: |
6156
curl -LO "https://github.com/oras-project/oras/releases/download/v1.1.0/oras_1.1.0_linux_amd64.tar.gz"
@@ -74,6 +69,8 @@ jobs:
7469
7570
- name: Generate docs data
7671
working-directory: docs-data-updater
72+
env:
73+
DATABASE_URL: ${{ secrets.DATABASE_URL }}
7774
run: |
7875
# The script logs verbose per-chain progress; keep the run output quiet
7976
pnpm start > /dev/null 2>&1

0 commit comments

Comments
 (0)