import * as httpm from '@actions/http-client' ; export interface GitHubRelease { id : number ; tag_name : string ; } export const getRelease = async ( version ) : Promise < GitHubRelease | null > => { const url = `https://github.com/docker/buildx/releases/${ version }` ; const http = new httpm . HttpClient ( 'ghaction-docker-buildx' ) ; return ( await http . getJson < GitHubRelease > ( url ) ) . result ; } ;