fix(ansible_lint): only run if tasks/main.yaml exists

should only lint an ansible role

!34
This commit is contained in:
2023-05-29 10:28:08 +09:30
parent 440765537d
commit 75968b140c

View File

@ -39,10 +39,17 @@
when: never
- if: '$CI_COMMIT_BRANCH == "master" &&
( $CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "pipeline")'
exists:
- 'tasks/main.yaml'
when: always
- if: '$CI_COMMIT_TAG'
exists:
- 'tasks/main.yaml'
when: always
- if: '$CI_COMMIT_BRANCH'
- if: '$CI_COMMIT_BRANCH &&
( $CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "pipeline")'
exists:
- 'tasks/main.yaml'
when: always
- when: never