GitLab Webhook trigger only if there is any changes in the file

Hi everyone,
I am new to Gitlab, and trying to use GitLab for Network Devices(Cisco) configuration CICD.
I have one GitLab and Ansible Tower Setup. Created a Webhook in Gitlab to trigger if there is any commit in the Branch , and this triggers template in Ansible Tower.

Now the challenge is , if I update any file in the Branch, it pushes a Webhook trigger to Ansible template(but this template will be refering to a single yaml file in GitLab).
How I can trigger Webhook if any changes happens to a specific file in the Branch?

Hi @network-evolution & welcome to the community :wave:

trigger Webhook [only] if any changes happens to a specific file

That sounds like the rules:changes keyword is needed for that particular job that contains the webhook. The example there targets the Dockerfile, but the structure hopefully makes it clear what you need to swap out for your use-case.

Does that help you move forward? Let us know how this goes and if you require any further assistance.