-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mojib
committed
Apr 7, 2024
1 parent
b0af437
commit d360053
Showing
4 changed files
with
32 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,33 +15,33 @@ to finish, so you would get a notification if the deployment failed. | |
|
||
## Inputs | ||
|
||
### `host` | ||
### `URL` | ||
|
||
The GitLab URL to trigger the pipeline on. Default `gitlab.com`. | ||
|
||
### `project_id` | ||
### `PROJECT_ID` | ||
|
||
**Required** The ID or path of the project owned by the authenticated user. | ||
You will find the *Project ID* in the *General Settings* of your GitLab project. | ||
|
||
### `ref_name` | ||
### `REF_NAME` | ||
|
||
**Required** The branch or tag to run the pipeline on. | ||
|
||
### `gitlab_trigger_token` | ||
### `GITLB_TRIGGER_TOKEN` | ||
|
||
**Required** The [GitLab pipeline trigger token](https://docs.gitlab.com/ee/ci/triggers/index.html#create-a-trigger-token) | ||
to trigger the pipeline. | ||
|
||
### `access_token` | ||
### `ACCESS_TOKEN` | ||
|
||
The [GitLab pipeline access token](https://docs.gitlab.com/ee/user/project/settings/project_access_tokens.html) | ||
to access the pipeline via the API. You need the `read_api` and `read_repository` scopes with `Guest` role for this token. | ||
|
||
For public projects you don't need to provide an access token. | ||
|
||
|
||
### `pipeline_variables` | ||
### `PIPELINE_VARIABLES` | ||
|
||
A map of key-valued strings containing the pipeline variables. For example: `{ VAR1: "value1", VAR2: "value2" }`.. Default `"World"`. | ||
|
||
|
@@ -61,9 +61,9 @@ The URL of the pipeline, for example `https://gitlab.com/foo/bar/pipelines/47`. | |
```yaml | ||
uses: mb-wali/[email protected] | ||
with: | ||
host: 'gitlab.example.com' | ||
gitlab_trigger_token: ${{ secrets.DEPLOY_TRIGGER_TOKEN }} | ||
project_id: '123' | ||
ref_name: 'main' | ||
pipeline_variables: '{"VAR1":"value1","VAR2":"value2"}' | ||
URL: 'gitlab.example.com' | ||
GITLB_TRIGGER_TOKEN: ${{ secrets.DEPLOY_TRIGGER_TOKEN }} | ||
PROJECT_ID: '123' | ||
REF_NAME: 'main' | ||
PIPELINE_VARIABLES: '{"VAR1":"value1","VAR2":"value2"}' | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters