Variable

class github.Variable.Variable

This class represents a GitHub variable.

The reference can be found here https://docs.github.com/en/rest/actions/variables

property name
Type

string

property value
Type

string

property created_at
Type

datetime.datetime

property updated_at
Type

datetime.datetime

property variables_url
Type

string

property url
Type

string

edit(value: str) → bool
Calls

PATCH /repos/{owner}/{repo}/actions/variables/{variable_name}

Parameters
  • variable_name – string

  • value – string

Return type

bool

delete() → None
Calls

DELETE {variable_url}

Return type

None