(I am referring to Azure DevOps pipeline YML)
I think it would be a lot better if TAG would be created only in case, some Intune config change is detected. Because of config changes discoverability etc.
I tried to accomplish that by checking git diff HEAD^^ HEAD^ --name-only
, but unfortunately this fails with an error 'fatal: ambiguous argument 'HEAD^^': unknown revision or path not in the working tree.'. This is caused I think by the HEAD that is being detached from origin?
Any idea how this could be achieved?