Pipeline fails due to invalid yml
Describe the bug
Starting with 3.8.0
, using the template causes pipelines to fail with the message "variable definition must be either a string or a hash". Root cause is likely this commit 4ff79966.
Expected behavior
This .gitlab-ci.yml
works:
- project: 'to-be-continuous/semantic-release'
ref: '3.8.0'
file: '/templates/gitlab-ci-semrel.yml'
Actual behavior
Pipeline fails to execute, due to error message variable definition must be either a string or a hash
Logs and/or screenshots
Context & Configuration
The pipeline running into the issue is private, but I have linked screenshots above
The issue was reproduced using:
- Version of the template: 3.8.0
- GitLab server(s): latest on gitlab.com
- GitLab runner(s): latest on gitlab.com
Here is the .gitlab-ci.yml
file:
include:
- project: 'to-be-continuous/semantic-release'
ref: '3.8.0'
file: '/templates/gitlab-ci-semrel.yml'
inputs:
image: registry.hub.docker.com/library/node:20.6.1
version: 22.0.8
exec-version: 6.0.3
changelog-enabled: true
auto-release-enabled: true