rerun git tags command when //:version changes
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
This commit is contained in:
parent
54c66769bc
commit
e439749e92
3
pkg/util/versionchecker/testdata/BUILD.bazel
vendored
3
pkg/util/versionchecker/testdata/BUILD.bazel
vendored
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user