GITLAB_INTEGRATION
name: "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:
Custom action with GITLAB input
Custom action logs
Tip
Adding
default
with the integration hash will automatically set the integration in the input.
Last update:
Aug 6, 2024
Aug 6, 2024