From 467df908721be971875c33a9b3c6627b27e5f4cc Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 21 Oct 2023 19:33:13 -0400 Subject: [PATCH] cannot set var dependent on another task --- taskfile.dist.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/taskfile.dist.yaml b/taskfile.dist.yaml index a18cfd6..d34249b 100644 --- a/taskfile.dist.yaml +++ b/taskfile.dist.yaml @@ -43,13 +43,10 @@ tasks: cmds: - git pull --tags -f - git add src/resources - - git commit -m "version update" --only src/resources && bash -c 'git show-ref --tags {{.TAG}} --quiet && git tag {{.TAG}}-$(date +%s) || git tag {{.TAG}}' || true + - git commit -m "version update" --only src/resources && bash -c 'git show-ref --tags v$(cat src/resources/bedrock-version.txt) --quiet && git tag v$(cat src/resources/bedrock-version.txt)-$(date +%s) || git tag v$(cat src/resources/bedrock-version.txt)' || true - git push origin --tags deps: - version-get - vars: - TAG: - sh: 'echo v$(cat src/resources/bedrock-version.txt)' clean: status: - false