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.
To Download the JAR from the Github Package Registry use this URL:
package:readpermissionOWNERwith the Github account name of the repository ownerREPOwith the repository namePACKAGEwith the group id you publishedVERSIONwith the artifact version you publishedARTIFACTwith the artifact id you publishedE.g. for this Package, were only a
pomfile is published: