firecow / gitlab-ci-local

Tired of pushing to test your .gitlab-ci.yml?
MIT License
2.03k stars 115 forks source link

Not recognized array input type #1249

Closed bataliero closed 2 weeks ago

bataliero commented 1 month ago

Minimal .gitlab-ci.yml illustrating the issue

include: 
    - '/templates/template1.yaml'

template1.yaml:

spec:
  inputs:
    tags-list:
      type: array
      default: []
---
build-job:
  stage: build
  script:
    - echo "test"
  tags: $[[ inputs.tags-list ]]

Expected behavior gitlab-ci-local accepts "array" type input

Host information WSL - Ubuntu 22.04 gitlab-ci-local 4.50.0

Additional context This GitLab CI configuration is invalid: /templates/template1.yml: header:spec:inputs:tags-list input type unknown value: array.

More information here.