Gitlab parallel - trying to pass a variable but it only takes integer

I have $NUMBER which passes through the rules
rules:
- if: ‘$CI_COMMIT_BRANCH == “main” && $NUMBER =~ /[1]$/’
when: always
parallel: $NUMBER

iam getting an error
parallel should be an integer or a hash

is there a way to convert the $NUMBER to integer?


  1. 2 ↩︎