Github API

Getting access, Developing, Testing

Back to Github

Create an environment variable

Create an environment variable that you can reference in a GitHub Actions workflow. You must authenticate using an access token with the repo scope to use this endpoint. GitHub Apps must have the environment:write repository permission to use this endpoint.

Input

type: object properties: parameters: type: object properties: repository_id: type: integer description: The unique identifier of the repository. environment_name: type: string description: The name of the environment. required: - repository_id - environment_name title: Parameters data: type: object properties: name: type: string description: The name of the variable. value: type: string description: The value of the variable. title: Data

Output

type: object title: Empty Object