Scroll to navigation

Net::GitHub::V3::Actions(3pm) User Contributed Perl Documentation Net::GitHub::V3::Actions(3pm)

NAME

Net::GitHub::V3::Actions - GitHub Actions API

SYNOPSIS

    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' } );

DESCRIPTION

METHODS

GitHub Actions

<https://developer.github.com/v3/actions/>

Artifacts

<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' } );
    

Workflows

<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 } );
    

Workflow Jobs

<https://developer.github.com/v3/actions/workflow-jobs/>

List jobs for a workflow run
Get a workflow job

AUTHOR & COPYRIGHT & LICENSE

Refer Net::GitHub

2022-04-21 perl v5.34.0