github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/circle/testdata/params/example2.yaml (about) 1 # https://circleci.com/docs/reusing-config/#using-the-parameters-declaration 2 # adapted to use the default parameter 3 4 version: 2.1 5 commands: # a reusable command with parameters 6 greeting: 7 parameters: 8 to: 9 default: "world" 10 type: string 11 steps: 12 - run: echo "Hello <<parameters.to>>" 13 jobs: 14 my-job: 15 docker: 16 - image: cimg/base:stable 17 auth: 18 username: mydockerhub-user 19 password: $DOCKERHUB_PASSWORD 20 steps: 21 - greeting: {} 22 # this line is commented out to test default values 23 # to: "My-Name" 24 workflows: 25 my-workflow: 26 jobs: 27 - my-job