This component generates a files and commits it to the repository. It will create an automatic commit when the content of the file changes.
Usage
include:
- component: $CI_SERVER_FQDN/xrow-public/ci-tools/common@stable
- component: $CI_SERVER_FQDN/xrow-public/ci-tools/generator@stable
inputs:
script: |-
echo "[info] Generating content"
FILE=chart/templates/generated.yaml
mkdir -p $(dirname $FILE) || true
echo "" > $FILE
echo "some:" >> $FILE
echo " value: test" >> $FILE
echo " cmd:" >> $FILE
echo " - echo Hello, World!" >> $FILE
Inputs
| Name | Description | Default | Type |
| --- | --- | --- | --- |
| dependencies | The jobs that this job depends on. | [] | array |
| message | Commit message to use when committing the generated file. | chore: Update generated content [skip ci] | string |
| name | ${CI_PROJECT_NAME} | string | |
| needs | The jobs that this job depends on. | [] | array |
| path | . | string | |
| rules | The jobs that this job depends on. | [{"if":"$CI_PIPELINE_SOURCE == \"schedule\"","when":"never"},{"if":"$CI_PIPELINE_SOURCE == \"merge_request_event\"","when":"on_success"},{"when":"on_success"}] | array |
| script | string | ||
| stage | The pipeline stage that the jobs belongs to. | .pre | string |