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:read
permissionOWNER
with the Github account name of the repository ownerREPO
with the repository namePACKAGE
with the group id you publishedVERSION
with the artifact version you publishedARTIFACT
with the artifact id you publishedE.g. for this Package, were only a
pom
file is published: