-
Notifications
You must be signed in to change notification settings - Fork 39
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
Warning from Bicep results in failed action #126
Comments
The same happen when there is an update of the Bicep CLI available. This warning should not result in an error.
|
+1 |
+1 Any updates or workaround? |
It should be safe to set this to We check the AzCLI exit code to determine failure, which is a more reliable source: arm-deploy/src/utils/azhelper.ts Lines 65 to 67 in 732d82b
|
<img width="888" alt="image" src="https://github.com/digdir/dialogporten/assets/1777366/70c6fabb-8d0e-4376-b3b5-e744d6e58244"> Deployments are failing because of warnings about Bicep cli upgrades. That's a tad too harsh.. But there doesn't seem to be a way to disable just those types of warnings so we rather skip failing on warnings. Need to add a different build step to catch these warning instead. Like a validation deployment or something similar. Azure/arm-deploy#126
When setting
bicepconfig.json
to the followingBicep will warn about using an experimental feature. However, the
azure/arm-deploy
action interprets this warning as an error and fails the whole run, even though the actual deployment went well:Using
failOnStdErr: false
feels like a too harsh workaround because then there is no possibility anymore to distinguish between a warning and a real error.The text was updated successfully, but these errors were encountered: