[フレーム]

GITLAB_INTEGRATION

yaml
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:

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 modified on Apr 7, 2025

AltStyle によって変換されたページ (->オリジナル) /