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

Changed default for azcliversion. #57

Merged
merged 6 commits into from
Nov 10, 2021
Merged

Changed default for azcliversion. #57

merged 6 commits into from
Nov 10, 2021

Conversation

t-dedah
Copy link
Contributor

@t-dedah t-dedah commented Nov 6, 2021

Changed the default value for azcliversion from latest to agentazcliversion . This will be protect the action from any breaking changes occurring due to mismatch between agent and latest cli versions.

Permanent solution for this issue #56

@t-dedah t-dedah changed the title Added restrictLatestToAgent Changed Default for azcliversion. Nov 8, 2021
@t-dedah t-dedah changed the title Changed Default for azcliversion. Changed default for azcliversion. Nov 8, 2021
lib/src/main.js Outdated Show resolved Hide resolved
src/main.ts Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
@t-dedah t-dedah merged commit 3817c5f into master Nov 10, 2021
t-dedah added a commit that referenced this pull request Nov 10, 2021
* Updated Readme for Azure CLI actions  (#29)

* Update README.md

* Update README.md

Co-authored-by: Usha N <n-usha@github.com>

* Add changes

* Added add-label workflow (#41)

* Added add-label workflow

* Updated default label worlkflow for health dashboard

* Reduced time

* Added issue template for health dashboard (#42)

* Added issue template for health dashboard

* Added assignees

* Add 'getting help' section to point customers to Azure CLI Repo for help (#50)

Signed-off-by: James Casey <james.casey@microsoft.com>

* Write Test Case For Azure cli Action (#48)

* Create main.test.ts

* Create ci-workflow.yml

* Update main.ts

* Update ci-workflow.yml

* Update main.ts

* Update ci-workflow.yml

* Update ci-workflow.yml

* Resolved multiple README issues (#51)

* Resolved multiple issues

* revert

* Changed default for azcliversion. (#57)

* Added restrictLatestToAgent

* typo

* required set to false

* Changed default to agent az cli version

* deleted lib files

* Resolved comments

* Add changes

* Update package.json

* Update package-lock.json

* Upgrade version (#59)

* Revert "Update package-lock.json"

This reverts commit 5633362.

* Revert "Update package.json"

This reverts commit f4b36bb.

* Upgrade version in packkage.json

Co-authored-by: Zainudeen V K <zainuvk@github.com>
Co-authored-by: Usha N <n-usha@github.com>
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: James Casey <james.casey@microsoft.com>
Co-authored-by: PankajGovindRao <84085346+PankajGovindRao@users.noreply.github.com>
@MoChilia MoChilia mentioned this pull request Dec 5, 2023

if(azcliversion == AZ_CLI_VERSION_DEFAULT_VALUE){
const { stdout, stderr } = await cpExec('az version');
if (!stderr) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stderr should never be used as an indicator of failure. See Azure/azure-cli#18372.

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.

4 participants