From 520fb2fac18f82186a29d91676db6bf345715e54 Mon Sep 17 00:00:00 2001 From: Jens L Date: Fri, 14 Apr 2023 13:51:57 +0200 Subject: [PATCH] ci: fix tag lookup for previous stable version (#5257) Signed-off-by: Jens Langhammer --- .github/workflows/ci-main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index 38c6e5a5d..3bcba95aa 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -60,7 +60,7 @@ jobs: cp authentik/lib/default.yml local.env.yml cp -R .github .. cp -R scripts .. - git checkout $(git describe --abbrev=0 --match 'version/*') + git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) rm -rf .github/ scripts/ mv ../.github ../scripts . - name: Setup authentik env (ensure stable deps are installed)