heroku-review-app-actions
heroku-review-app-actions copied to clipboard
Get review apps env var
If an app uses an app.json
file with required env var without default value, the app is not created.
I'm working on an update to get the env vars defined for the review apps in the Heroku pipeline and I'll open a PR today.
Can you elaborate more on it? Which version are you using? Value's in app.json are not recognised?
I think the env var should be handled automatically since it's the /review-apps
endpoint.
I used the last version (2.0.0-dev).
In my app.json, I don't have default values, only requirement like:
"MY_ENV_VAR": {
"required": true
},
I can retrieve the env var with: https://github.com/Blaked84/heroku-review-app-actions/blob/main/action.yaml#L54-L63 and https://github.com/Blaked84/heroku-review-app-actions/blob/main/action.yaml#L76
I can open a PR if this solution is OK for you.