Skip to content

Broken links on wrong versions azcliversion #30885

@nselpriv

Description

@nselpriv

Describe the bug

Image

A dot is appended to the debug print making the link broken

Related command

azcliversion

Errors

Error: Please enter a valid azure cli version.
See available versions: https://github.com/Azure/azure-cli/releases.
Error: Error: Please enter a valid azure cli version.
See available versions: https://github.com/Azure/azure-cli/releases.

Issue script & Debug output

not relevant

Expected behavior

Links that work

Environment Summary

azure-cli version 2.69.0

running in https://github.com/marketplace/actions/azure-cli-action version v2.1.0

Additional context

fix here:

    if (!(await checkIfValidCLIVersion(azcliversion))) {
        core.error('Please enter a valid azure cli version. \nSee available versions: https://github.com/Azure/azure-cli/releases');
        throw new Error('Please enter a valid azure cli version. \nSee available versions: https://github.com/Azure/azure-cli/releases')
    }

in src/main.ts line 43-46

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions