Skip to content

Latest release is not showing up first anymore #2151

Closed

Description

@npalm

Describe the bug
On the release page the latest release is not showing up first anymore, looks like may old releases are re-released. We are using the github api to find the latest release. To cache the self-hosted action action runner distribution. This is now downloading a not supported release, in our case 2.293.1 instead of the latest one. This release is not starting.

To Reproduce
Just go to the release page of this repo, or query via the API.

Expected behavior
Latest release shows up first.

Runner Version and Platform

n/a

What's not working?

n/a

Job Log Output

n/a

Activity

  1. added
    bug
    on Sep 22, 2022
  2. nikola-jokic commented on Sep 23, 2022

    @nikola-jokic
    Contributor

    Hey @npalm, thank you for spotting this!

  3. fhammerl commented on Sep 23, 2022

    @fhammerl
    Contributor

    Hi @npalm,

    You're totally right about some older releases being re-released. However, they were tagged as pre-release so that they don't interfere with getting the latest runner version through the API.

    When you query the (list of releases)[
    https://docs.github.com/en/rest/releases/releases#list-releases], they are returned ordered by release date, most recent first.

    If you need the latest release by version, it is best practice to fetch it though its dedicated API endpoint:
    https://docs.github.com/en/rest/releases/releases#get-the-latest-release

    This endpoint returns with the correct version.

    Closing this issue as per https://github.com/philips-labs/terraform-aws-github-runner/pull/2455/files

  4. npalm commented on Sep 24, 2022

    @npalm
    Author

    Thx for the feedback.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions