Skip to content

Commit 187bd70

Browse files
authored
Merge pull request #3661 from IntersectMBO/refactor/report-workflow
Fix: deployment env issue on schedule workflow
2 parents 4a0566e + 3786d15 commit 187bd70

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/test_backend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ jobs:
191191

192192
env:
193193
BASE_URL: https://${{github.event.schedule && 'be.preview.gov.tools' || inputs.deployment || 'govtool.cardanoapi.io/api' }}
194-
DEPLOYMENT: ${{ inputs.deployment || 'govtool.cardanoapi.io/api'}}
194+
DEPLOYMENT: ${{ github.event.schedule && 'be.preview.gov.tools' || inputs.deployment || 'govtool.cardanoapi.io/api'}}
195195
REPORT_NAME: ${{ github.event.schedule && 'nightly-'}}govtool-backend
196196
GH_PAGES: ${{vars.GH_PAGES}}
197197
COMMIT_SHA: ${{ github.event.workflow_run.head_sha || github.sha }}

.github/workflows/test_integration_playwright.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ jobs:
231231
GITHUB_TOKEN: ${{ github.token }}
232232
env:
233233
HOST_URL: https://${{ github.event.schedule && 'preview.gov.tools' || (inputs.deployment || 'govtool.cardanoapi.io') }}
234+
DEPLOYMENT: ${{ github.event.schedule && 'preview.gov.tools' || inputs.deployment || 'govtool.cardanoapi.io'}}
234235
REPORT_NAME: ${{ github.event.schedule && 'nightly-'}}govtool-frontend
235236
GH_PAGES: ${{vars.GH_PAGES}}
236237
COMMIT_SHA: ${{ github.event.workflow_run.head_sha || github.sha }}

0 commit comments

Comments
 (0)