Skip to content

📦GH-GET allows you to easily retrieve the latest artifact of a workflow from GitHub.

License

Notifications You must be signed in to change notification settings

m-radmacher/gh-get

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📦 GH-GET

GH-GET allows you to easily retrieve the latest artifact of a workflow from GitHub.

Arguments

  • -r/--repository: The repository containing the workflow
  • -u/--user: The owner of the repository
  • -a/--artifact: The name of your artifact (can be configured in the actions .yml)
  • -w/--workflow: The id of the workflow or the name of the actions .yml file
  • -o/--output: The output path. The file name will always follow this schema: ${artifactName}-${runNumber}.zip
  • -p/--pat: A personal access token with the repo permission
  • -f/--overwrite: Overwrite the old file instead of creating a new one? Changes the file schema to ${artifactName}.zip

Example

The following command

gh-get.exe -r=gh-get -u=m-radmacher -a=example -w="example.yml" -o="./" -p=ghp_

would fetch the latest artifact that was generated by the workflow described in example.yml. At the time of writing the fetched file is called example-2.zip, since the workflow has only been run twice.

About

📦GH-GET allows you to easily retrieve the latest artifact of a workflow from GitHub.

Topics

Resources

License

Stars

Watchers

Forks