Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare conda build artifacts step fails on Azure + Windows with "The syntax of the command is incorrect." #1723

Closed
1 task done
ryanvolz opened this issue Mar 9, 2023 · 0 comments · Fixed by #1724
Closed
1 task done
Labels

Comments

@ryanvolz
Copy link
Contributor

ryanvolz commented Mar 9, 2023

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

Since #1701, and version 3.23.0, enabling storage of the conda build artifacts causes a failure on Azure + Windows during the "Prepare conda build artifacts" step, producing the error message "The syntax of the command is incorrect." See example.

The syntax error comes from the fact that %GITHUB_OUTPUT% is not defined on Azure (it is for GitHub Actions), and despite the fact that that variable is only used behind an if statement that checks for GHA CI, the script fails to parse since the variable expands to the empty string.

Switching to delayed expansion by accessing that variable as !GITHUB_OUTPUT! eliminates the syntax error. PR incoming.

Installed packages

N/A

Environment info

N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant