diff --git a/.github/workflows/daily-csv-upload.yaml b/.github/workflows/daily-csv-upload.yaml index a4261300f..908223946 100644 --- a/.github/workflows/daily-csv-upload.yaml +++ b/.github/workflows/daily-csv-upload.yaml @@ -39,7 +39,7 @@ jobs: id: var with: script: | - const environment = github.event.inputs ? github.event.inputs.environment : 'za'; + const environment = (github and github.event and github.event.inputs) ? github.event.inputs.environment : 'za'; core.setOutput('environment', environment); wait-for-deploy: