I am building a devops pipeline that will extract OpenAPI ymal files from a GIT repo and then fire some RestAPI requests to another system (API management product) to publish the API using the ymal files.
The idea is to create a Jenkins job and scan the Git repo every 10 minutes, searching for particular path (e.g. /myproject/openapi/) and file extension (*.ymal). If it sees recent changes (within 10 minutes), it will extract those files and run a script to fire the APIs.
Could somebody help on Git command that can extract the ymal files?
Note the Git repo may be very large and I wish to only download and extract those files with matching criteria.
Thank you.