Skip to content

Commit

Permalink
ci: update GitLab CI configuration for improved pipelines
Browse files Browse the repository at this point in the history
- Update the GitLab CI action version from master to v1.1.0
- Add example configuration for passing variables to the triggered pipeline
- Include debug option and project ID in the pipeline configuration

Signed-off-by: appleboy <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Oct 12, 2024
1 parent ca5a58a commit da318ff
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: trigger Job
uses: appleboy/gitlab-ci-action@master
uses: appleboy/gitlab-ci-action@v1.1.0
with:
host: "http://example.com"
token: ${{ secrets.TOKEN }}
Expand All @@ -42,7 +42,7 @@ Specific the GitLab host URL:

```yml
- name: trigger Job
uses: appleboy/gitlab-ci-action@master
uses: appleboy/gitlab-ci-action@v1.1.0
with:
host: "http://example.com"
token: ${{ secrets.TOKEN }}
Expand All @@ -54,7 +54,7 @@ Other specific `branch` or `tag` name:

```yml
- name: trigger Job
uses: appleboy/gitlab-ci-action@master
uses: appleboy/gitlab-ci-action@v1.1.0
with:
host: "http://example.com"
token: ${{ secrets.TOKEN }}
Expand All @@ -63,6 +63,19 @@ Other specific `branch` or `tag` name:
ref: 'v1.0.0'
```

Pass the variables to the triggered pipeline:

```yml
- name: trigger Job
uses: appleboy/gitlab-ci-action@1.1.0
with:
host: "http://example.com"
token: ${{ secrets.TOKEN }}
debug: true
project_id: 100
variables: 'key1=value01,key2=value02'
```

## Input variables

* host - Optional. gitlab-ci base url, default as `https://gitlab.com`
Expand Down

0 comments on commit da318ff

Please sign in to comment.