This action requires a token for the user on whose behalf it will run.
CreateGitlabProjectVariables — creates project-level variables in GitLab.
Request example
project_id: '0'
variables:
- key: EXAMPLE_VARIABLE
value: valueRequest specification
| Name | Required | Description |
|---|---|---|
| project_id | Yes | Identifier of the project in which to create the variables |
| variables | Yes | List of variables to create |
The fields for each variable correspond to the official GitLab project-level CI/CD variables API, /projects/:id/variables. For details, see the GitLab documentation.
Note
The action performs a POST request to the URL: /api/v4/projects/:id/variables.