Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions knowledge-portal/source/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ copy-to-central-git:
script:
- bash -c "$(curl -fsSL https://github.com/detecttechnologies/Gitlab-CI-CD-Templates/raw/main/knowledge-portal/source/initiate-push-to-central.sh)"
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: manual
- if: $CI_COMMIT_BRANCH == "main"
when: always
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: never
- when : manual
2 changes: 2 additions & 0 deletions knowledge-portal/source/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ variables:
GIT_STRATEGY: clone

```
**Note: The pipeline can be added to any branch.** On `main`, it runs automatically and on other branches, it needs to be trigerred manually.

### Connect your Source Git repository to the Knowledge Portal

Here is an example of a `docs-manifest.toml` file that you can use to create your own and connect your repository to knowledge portal:
Expand Down