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

Add support for specifying Bicep version #1

Merged
merged 5 commits into from
May 26, 2023

Conversation

matsest
Copy link
Contributor

@matsest matsest commented Apr 5, 2023

Since build results will vary across versions this adds the option to
specify version. The default version is the latest available version.

This is motivated by the release cadence of Bicep versions and wanting
to test for specific or multiple versions.

Other fixes:

  • Remove deprecated set-output syntax (78e50b5)
  • Do not install az if it's already installed (0b3c0e2)
  • Add shellcheck disabled rules (only for existing warnings) 70ddeaf

matsest added 5 commits April 5, 2023 22:11
Since build results will vary across versions this adds the option to
specify version. The default version is the latest available version.
To have the shellcheck pass without warnings this adds the disabled flag
in the shell file. This change only include configuration for existing
warnings and does not change existing shell code to comply with default
shellcheck configuration.
Azure CLI is default installed on GitHub runners by default:
https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md#cli-tools

This will speed up the action since it does not need to install az if
it's already installed.
@matsest
Copy link
Contributor Author

matsest commented Apr 5, 2023

Thanks for making this action - hope you will accept this PR :)

Let me know if the other fixes (shellcheck, az handling, set-output syntax) should be separated into another PR - or removed.

You can see a test run with the changes here:

Action: https://github.com/matsest/bicep-lint-action/actions/runs/4622891173
Code: https://github.com/matsest/bicep-lint-action/tree/feat-test

Please note that this error from the run is an error only found in az 2.46 and is fixed in the newest released version (2.47), so a workaround for it is not added in this PR Azure/azure-cli#25710

@Clint-Chester
Copy link
Member

Apologies for the delay @matsest but thank you so much for the contribution! Really appreciate it.

@Clint-Chester Clint-Chester merged commit 075c3e0 into synergy-au:main May 26, 2023
@matsest matsest deleted the feat/bicep-version branch May 26, 2023 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants