Gitlab CI - Glob rules changed files

This doesn’t work


deploy:
  extends:
    - .deploy-template
  only:
    changes:
        - "services/abc/**"

This works


deploy:
  extends:
    - .deploy-template
  only:
    changes:
        - "services/abc/**/*"
        - "services/abc/*"

From browsing around Gitlab CI Runner Issues and documentation I would expect doublestar library to support transversing the directories and looking for any changed file within the parent directory, but doesn’t seem to be the case.

I’ve tried quotes and no quotes. Only and if directives. Both seem to have same behavior

1 Like

I think you might need to include a file extension according to [Question] Artifact patterns? - #2 by hchouraria, i.e. sevices/abc/**/*.service.

1 Like