qetza / replacetokens-task

Azure Pipelines task to replace tokens in files with variables.
MIT License
11 stars 2 forks source link

Missing classic release default variables #8

Closed qetza closed 5 months ago

qetza commented 5 months ago

I have an Azure DevOps pipeline that is using the v3 replace tokens task. I saw that v6 was available, so I updated my task to use it, but there are some Azure Devops variables that are no longer being replaced, e.g. $(Release.ReleaseName), $(Release.AttemptNumber). These are built in variables to Azure DevOps: https://learn.microsoft.com/en-us/azure/devops/pipelines/release/variables?view=azure-devops&tabs=batch

Is there a way to make the v6 task pull these in without having to do them individually? Thanks.

Originally posted by @gowallace in https://github.com/qetza/replacetokens-task/discussions/6

qetza commented 5 months ago

The issue is not that the variables are missing but that a side effect of using a common npm package with my new GitHub Action that the variable names are now case sensitive. Need to update the lib to make it case insensitive as done in Azure Pipelines and GitHub Actions.