[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.
-
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.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
-
|
Beta Was this translation helpful? Give feedback.
-
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.args
would be converted directly tomatrix.cmake.args
and result in an empty string during evaluation as it's interpreted as an invalid context.The presence of
.
also confuses variable lookup when combiningenv
andmatrix
variables. For example, in one project I had a library variableCommon.ispc.version
, which was converted toenv.ispc_version
. I also had a matrix variableispc
as 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