Pipeline trigger to detect changes since last tag

The current functionality allows a stage to be triggered when changes are made to a folder in the current commit.

https://docs.gitlab.com/ee/ci/yaml/#onlychangesexceptchanges

docker build:
  script: docker build -t my-image:$CI_COMMIT_REF_SLUG .
  only:
    changes:
      - Dockerfile
      - docker/scripts/*
      - dockerfiles/**/*
      - more_scripts/*.{rb,py,sh}

If would be useful to extend this feature, so that when a tag is created, I can trigger jobs if there has been a change to a folder since the previous tag on the same branch.

Assignee Loading
Time tracking Loading