Working on an asset bundle/yml file to deploy a job and some notebooks. How to specify within the yml file a trigger to run the job when files arrive at a specified location? Thanks in advance!
Hi @DatabricksDude, To trigger a job in your YAML file when specific files arrive at a specified location, you can use the following approaches based on the context of your deployment:
GitLab CI/CD:
If you’re using GitLab CI/CD, you can achieve this by defining rules for your job. The changes keyword allows you to specify patterns for files that trigger the job. However, by default, it only triggers for the current commit.
To make the job run whenever a file in the specified directory changes at any commit in the branch, consider using merge requests (MRs). Create a unique MR job that contains the relevant changes part. For example: