Test env var

This commit is contained in:
zandercymatics 2023-12-05 11:58:44 -07:00
parent 3b10a6b023
commit 1c52e73fe4
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -19,6 +19,8 @@ on:
jobs:
variables:
env:
DEFAULT_ENV: CF_REPORT_ENV
outputs:
environment: ${{ steps.var.outputs.environment}}
runs-on: "ubuntu-latest"
@ -28,7 +30,7 @@ jobs:
id: var
with:
script: |
const environment = (github && github.event && github.event.inputs) ? github.event.inputs.environment : ${{ secrets["CF_REPORT_ENV"] }};
const environment = (github && github.event && github.event.inputs) ? github.event.inputs.environment : ${{ secrets[env.DEFAULT_ENV]] }};
core.setOutput('environment', environment);
upload-reports: