firecow / gitlab-ci-local

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

Passing boolean input parameters #1289

Closed devtribe closed 1 month ago

devtribe commented 1 month ago

If you passing a boolean input parameter through more than one component, the type getting lost.

With the following example you get the error This GitLab CI configuration is invalid: "a.gitlab-ci.yml": "abc" input: provided value is not a boolean.

a.gitlab-ci.yml

---
spec:
  inputs:
    abc:
      type: boolean

b.gitlab-ci.yml

---
spec:
  inputs:
    abc:
      type: boolean

---
include:
  - component: a
    inputs:
      abc: $[[ inputs.abc ]]

.gitlab-ci.yml

---
include:
  - component: b
    inputs:
      abc: true

Expected behavior Everything works fine

Host information macOS 14.5 gitlab-ci-local 4.52.1

Containerd binary docker

ANGkeith commented 1 month ago

Thanks for the bug report, the mr ^ should address your issue