brandedoutcast / publish-nuget

📦 GitHub action to automate publishing NuGet packages when project version changes
https://github.com/marketplace/actions/publish-nuget
MIT License
197 stars 101 forks source link

[BUG] env values ignored by steps. #57

Open nitz opened 3 years ago

nitz commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

Failed Action Log URL (Required) A URL to the failed action log. Failed run, line shows with INCLUDE_SYMBOLS: false Same run, line shows env INCLUDE_SYMBOLS: true Same run, line shows dotnet build with no --include-symbols Same run, dotnet nuget push has -n 1 instead of empty string for that last ternary operator

To Reproduce Steps to reproduce the behavior:

  1. Create a setup like the one above,.
  2. Set some variables in the job's env, and attempt to not use them in steps.

Expected Behavior Variables set in env to apply, instead they seem not to.

Environment:

I've taken a look at index.js and it looks like everything should work, but I can't explain why my env output looks correct but the script doesn't seem to use the values in it!