Test default

This commit is contained in:
zandercymatics 2023-12-05 12:18:12 -07:00
parent 20005b7140
commit 546a65ccee
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -8,7 +8,14 @@ on:
- cron: "0 5 * * *" - cron: "0 5 * * *"
jobs: jobs:
default:
outputs:
default: CF_REPORT_ENV
variables: variables:
needs: [default]
env:
CF_DEFAULT: $ {{ needs.default.outputs.default }}
outputs: outputs:
environment: ${{ steps.var.outputs.environment}} environment: ${{ steps.var.outputs.environment}}
runs-on: "ubuntu-latest" runs-on: "ubuntu-latest"
@ -18,9 +25,8 @@ jobs:
id: var id: var
with: with:
script: | script: |
const default = "CF_REPORT_ENV" const environment = ${{ secrets[env.CF_DEFAULT] }};
const environment = ${{ secrets[default] }}; core.setOutput("environment", environment);
core.setOutput('environment', environment);
upload-reports: upload-reports:
runs-on: ubuntu-latest runs-on: ubuntu-latest