GITLAB_INTEGRATION
yamlname: "input_GitLab" inputs: gitlab_field: type: GITLAB_INTEGRATION name: "GitLab Integration" default: "gitlab_integration_hash" execute_commands: - glab auth status docker_image_name: "buddy/gitlab-cli" docker_image_tag: "latest"
The GITLAB_INTEGRATION
parameter adds an input that lets you select the GitLab integration and use it in the action. The action also generates $GITLAB_TOKEN
that can be used in the pipeline. If this is an integration with GitLab EE/CE, the action additionally generates the variable $GITLAB_HOST
.
This action uses a Docker image with the GitLab CLI installed. The executed command retrieves the primary contact information of the account associated with the selected GitLab integration:
Image loading...Custom action with GITLAB input
Image loading...Custom action logs
Tip
Adding
default
with the integration hash will automatically set the integration in the input.
Last update:
Sep 23, 2024
Sep 23, 2024