Skip to main content

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

NameDescriptionDefaultType
------------
dependenciesThe jobs that this job depends on.[]array
messageCommit message to use when committing the generated file.chore: Update generated content [skip ci]string
name${CI_PROJECT_NAME}string
needsThe jobs that this job depends on.[]array
path.string
rulesThe 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
scriptstring
stageThe pipeline stage that the jobs belongs to..prestring