[Support]: Matrix variables with . in them aren't converted to _ for azure-devops.
#231
Replies: 13 comments
-
|
Help wanted |
Beta Was this translation helpful? Give feedback.
-
|
I'm using Windows |
Beta Was this translation helpful? Give feedback.
-
|
oo |
Beta Was this translation helpful? Give feedback.
-
|
Based on the information you've provided, it seems that the conversion of pipeline matrices from Azure DevOps to GitHub Actions is causing issues with variable naming and lookup. The presence of periods in variable names is causing confusion with the conversion process, resulting in the incorrect substitution of variables. It may be necessary to modify the variable names to avoid periods or use a different method for variable substitution. |
Beta Was this translation helpful? Give feedback.
-
|
good |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What operating system are you using?
What version of the tool are you using?
gh version 2.20.2 (2022-11-15)
gh actions-importer github/gh-actions-importer v1.0
actions-importer/cli v1.0.14451
What happened?
When converting pipeline matrices from azure-devops, variables with
.in them aren't converted to_. For example, a matrix variablecmake.argswould be converted directly tomatrix.cmake.argsand result in an empty string during evaluation as it's interpreted as an invalid context.The presence of
.also confuses variable lookup when combiningenvandmatrixvariables. For example, in one project I had a library variableCommon.ispc.version, which was converted toenv.ispc_version. I also had a matrix variableispcas a 0/1 toggle. When converting the jobs, the usage of$(Common.ispc.version)was converted to${{ matrix.ispc }}.version), finding the incorrect variable and leaving a trailing.version)after the substitution, rather than${{ env.ispc_version }}.Relevant log output
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions