We have a repository with a pipeline for our deployment procedure.
Depending on variable settings, the pipeline runs various commands via runner to install stuff. It handles the dependencies and sequencing. So far this works fine.
Currently we trigger the pipeline using curl from the command line. We pass the necessary variables and the pipeline executes as desired.
But we would like to trigger the pipeline when a file containing such variables is committed and
have the pipeline include this file.
For example we would have a file ‘Q2-v4.5.15’ to install release v4.5.15 on the Q2 cluster.
When committing this file, the pipeline would run, include and include file.
How can we obtain the name of the file in the commit to in order include it ?