rerun git tags command when //:version changes

Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
This commit is contained in:
Inteon 2021-08-13 22:59:38 +02:00
parent 54c66769bc
commit e439749e92
No known key found for this signature in database
GPG Key ID: BD5DCF7303C7C1A7

View File

@ -1,8 +1,9 @@
# Clone empty version of cert-manager repo and list all tags
# List all tags of cert-manager repo
genrule(
name = "git_tags",
outs = [":git_tags.txt"],
cmd = "git ls-remote -t --refs https://github.com/jetstack/cert-manager.git | awk '{print $$2;}' | sed 's/refs\\/tags\\///' | sed -n '/v1.0.0/,$$p' > $@",
stamp = 1, # make sure we re-run if 'bazel-out/stable-status.txt' changes (more frequent would also be ok, but is difficult with bazel)
)
genrule(