githubactions

package
v0.30.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(client forge.Client, token string) ci.Driver

Types

type Driver

type Driver struct {
	Client forge.Client
	Token  string
}

Driver implements ci.Driver against GitHub Actions.

func (*Driver) AssertNoWorkflow

func (d *Driver) AssertNoWorkflow(ctx context.Context, owner, repo, workflowFile string, after time.Time) error

func (*Driver) DownloadArtifacts

func (d *Driver) DownloadArtifacts(ctx context.Context, owner, repo string, runID int, destDir string) error

func (*Driver) DownloadNamedArtifactAfter

func (d *Driver) DownloadNamedArtifactAfter(ctx context.Context, owner, repo, artifactName string, after time.Time, destDir string) error

func (*Driver) DownloadNamedArtifactFromRun

func (d *Driver) DownloadNamedArtifactFromRun(ctx context.Context, owner, repo string, runID int, artifactName string, destDir string) error

func (*Driver) FindCompletedWorkflowRun

func (d *Driver) FindCompletedWorkflowRun(ctx context.Context, owner, repo, workflowFile string, after time.Time) (*forge.WorkflowRun, error)

func (*Driver) GetRunLogs

func (d *Driver) GetRunLogs(ctx context.Context, owner, repo string, runID int) (string, error)

func (*Driver) WaitForWorkflow

func (d *Driver) WaitForWorkflow(ctx context.Context, owner, repo, workflowFile string, after time.Time, event string) (*forge.WorkflowRun, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL