mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-09 08:07:57 -06:00
Fix jq output (-cMr), use SERVICE_ID, ENVIRONMENT_ID properly
This commit is contained in:
5
.github/workflows/test.yaml
vendored
5
.github/workflows/test.yaml
vendored
@@ -38,12 +38,11 @@ jobs:
|
||||
- name: Acquire Database URL from Railway
|
||||
env:
|
||||
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
|
||||
SERVICE_ID: linkpulse
|
||||
SERVICE_ID: Postgres
|
||||
ENVIRONMENT_ID: development
|
||||
run: |
|
||||
bash <(curl -fsSL cli.new)
|
||||
echo "DATABASE_URL=$(railway variables --service Postgres --environment development --json | jq .DATABASE_PUBLIC_URL)" >> "$GITHUB_ENV"
|
||||
|
||||
echo "DATABASE_URL=$(railway variables --service $SERVICE_ID --environment $ENVIRONMENT_ID --json | jq -cMr .DATABASE_PUBLIC_URL)" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Pytest
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user