Skip to content

tag_name and filename disagree #11

Description

@quoll

Release 0.15.0 has a filename with extra information: 1-g0187008

When the script extracts the tag_name it gets only the string 0.15.0, and uses only this when creating the download URL:

ASSET_NAME="perspective-cli-${TAG}-macos-arm64.tar.gz"

The resulting filename is missing the extra release information.

It may be better to do the same trick as for tag_name and extract the value for "browser_download_url". This is a little dirty, since it's in a nested structure, but it's a simple file so it's safe for now.

DOWNLOAD_URL="https://github.com/${REPO}/releases/download/${TAG}/${ASSET_NAME}"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions