Fix multiversion build

Only generate for heads of branches, not for every tag

Change-Id: I2e0a379cf725c264f675db151eadbfedbae41f76
2 files changed