Goal
I want to have two repositories:
Repository A: Publishes a JAR to Github Registry
Repository B: Downloads the JAR from A and publishes a Docker Image containing the JAR.
I.e. I'm searching for an API which looks like:
wget https://github.com/repoOwner/repoName/packages/1.2.3/my.jar
Question
Is there a Github Action or API which allows me to download an artifact from a Github Package Registry for a specific version?
Problem
I know there is a Github API for the artifacts but I don't see how I can request the artifact URL for a specific version.