Back to the "Environments API" | Back to the navigation
https://docs.github.com/en/rest/actions/variables?apiVersion=2022-11-28#list-environment-variables
$variables = $client->environment()->variables()->all($repoId, $envName);
https://docs.github.com/en/rest/actions/variables?apiVersion=2022-11-28#get-an-environment-variable
$variable = $client->environment()->variables()->show($repoId, $envName, $variableName);
$client->environment()->variables()->create($repoId, $envName, [
'name' => $name,
'value' => $value
]);
$client->environment()->variables()->update($repoId, $envName, $variableName, [
'name' => $name,
'value' => $value
]);
$client->environment()->variables()->remove($repoId, $envName, $variableName);