Can an array input be used in the tags: section?

Hi everyone,

I’m facing a strange problem with Array inputs in GitLab CI.I want to use an input of type array for the tags section, but I keep getting the following error:

Incorrect type. Expected “array”.

Here is my config:

spec:
  inputs:
    CI_JOB_TAGS:
      type: array
      description: ci job tags

--- 

stages:
  - pre_build

pre_build:
  stage: pre_build
  tags: $[[ inputs.CI_JOB_TAGS ]]

So I guess I’m missing something when trying to apply the same pattern for tags. Has anyone faced this before? How can I properly use an array input for the tags section?

I don’t pretend to know how its implemented, but to allow arrays to be merged I normally use the array on an array element:

some job:
  tags:
  - $[[ inputs.array_var ]]
  - some-other-tag

It worked. But as far as I understand in this case you can’t use a variable, becouse it must be string or hash. So you just should use this structure instead: $[[ inputs.array_var ]]. Ty for help.