This action requires a token for the user on whose behalf it will run.
CreateGitlabGroupVariables — creates group-level variables in GitLab.
Request example
group_id: '0'
variables:
- key: EXAMPLE_VARIABLE
value: valueRequest specification
| Name | Required | Description |
|---|---|---|
| group_id | Yes | Identifier of the group in which to create the variables |
| variables | Yes | List of variables to create |
The fields for each variable correspond to the official GitLab group-level variables API, /groups/:id/variables. For details, see the GitLab documentation.
The action creates the variables one by one. If GitLab does not create some of the variables, the action creates the remaining ones, and the run ends with the Warning status. The GitLab response for each failed variable is written to the run log.
Note
The action performs a POST request to the URL: /api/v4/groups/:id/variables.