happytal / substitute-variables

Azure DevOps task for substituting variables in plain JSON and YAML files
MIT License
1 stars 0 forks source link

Occasional substituted variables are empty. #16

Closed prestonr83 closed 10 months ago

prestonr83 commented 1 year ago

I have run into this twice now were 2 of my variables on different pipelines fail to replace. They show in the debug that replacement was successful but the output is empty.

2022-10-26T19:52:17.9377242Z ##[debug]secrets.TokenRequestConfig__Authority=https://auth.dev.corestream.com

2022-10-26T19:52:18.0304129Z ##[debug]Trying to substitute variable secrets.TokenRequestConfigAuthority 2022-10-26T19:52:18.0305565Z Substituting variable secrets.TokenRequestConfigAuthority as string

However when I check the yaml that was transformed that value is empty.

fhervieux commented 1 year ago

Would you be able to share the yaml file you are executing the substitutions on? Or at least a subset that reproduces the issue?

Also, are you overriding the file path in your task? Since it looks like the substitution worked I am thinking the file could be written at a wrong location.

On Wed 26 Oct 2022 at 10:07 PM Preston Rodriguez @.***> wrote:

I have run into this twice now were 2 of my variables on different pipelines fail to replace. They show in the debug that replacement was successful but the output is empty.

2022-10-26T19:52:17.9377242Z

[debug]secrets.TokenRequestConfig__Authority=

https://auth.dev.corestream.com

2022-10-26T19:52:18.0304129Z ##[debug]Trying to substitute variable secrets.TokenRequestConfigAuthority 2022-10-26T19:52:18.0305565Z Substituting variable secrets.TokenRequestConfigAuthority as string

However when I check the yaml that was transformed that value is empty.

— Reply to this email directly, view it on GitHub https://github.com/happytal/substitute-variables/issues/16, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMSW5LEAIWSCLCNRCKQ5I3WFGFPPANCNFSM6AAAAAARPLHV3Y . You are receiving this because you are subscribed to this thread.Message ID: @.***>