firecow / gitlab-ci-local

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

manual_confirmation validation error #1321

Closed shuguenot closed 1 month ago

shuguenot commented 1 month ago

Minimal .gitlab-ci.yml illustrating the issue

---
delete_job:
  script:
    - make delete
  when: manual
  manual_confirmation: 'Are you sure you want to delete $CI_ENVIRONMENT_SLUG?'

Observed behavior

gitlab-ci-local --list

Invalid .gitlab-ci.yml configuration!
        • 'manual_confirmation' property is not expected to be here at delete_job

Expected behavior No error, this configuration is valid according the official documentation https://docs.gitlab.com/ee/ci/yaml/?query=manual_confirmation#manual_confirmation

Host information macOS gitlab-ci-local 4.52.2

ANGkeith commented 1 month ago

https://github.com/firecow/gitlab-ci-local/commit/cba444221fd2eebf21e7e33d789274cc9b492fe0 should fix this issue in the next release

firecow commented 1 month ago

Release incoming