Net::GitHub::V3::Actions - GitHub Actions API
use Net::GitHub::V3; my $gh = Net::GitHub::V3->new; # read L<Net::GitHub::V3> to set right authentication info my $actions = $gh->actions; # set :user/:repo for simple calls $actions->set_default_user_repo('fayland', 'perl-net-github'); $actions->workflows(); $actions->workflows( { owner => 'xxx', repo => 'repo' } );
https://developer.github.com/v3/actions/
https://developer.github.com/v3/actions/artifacts/
List artifacts for a repository
$actions->artifacts( { owner => 'xxx', repo => 'repo' } );
$actions->run_artifacts( { owner => 'xxx', repo => 'repo', run_id => XXX } );
$actions->artifacts( { owner => 'xxx', repo => 'repo', artifact_id => 'ID' } );
https://developer.github.com/v3/actions/workflows/
List repository workflows
$actions->workflows( { owner => 'xxx', repo => 'repo' } );
Get a workflow
$actions->workflow( { owner => 'xxx', repo => 'repo', workflow_id => 1234 } );
https://developer.github.com/v3/actions/workflow-jobs/
List jobs for a workflow run
Get a workflow job
Refer Net::GitHub
To install Net::GitHub, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::GitHub
CPAN shell
perl -MCPAN -e shell install Net::GitHub
For more information on module installation, please visit the detailed CPAN module installation guide.