GH-GET allows you to easily retrieve the latest artifact of a workflow from GitHub.
- -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
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.