Skip to main content

Generator component

This component generates a file 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"
echo "${CI_COMMIT_SHA}" > generated-sha.yaml

Inputs

NameDescriptionDefaultType
------------
dependenciesThe jobs that this job depends on.[]array
messageCommit message to use when committing the generated file.chore: Update generated contentstring
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