From 6f6eeed6738a8de15eaa3847eae573d4e9f95311 Mon Sep 17 00:00:00 2001 From: Nicolas Sarlin Date: Tue, 8 Oct 2024 11:48:31 +0200 Subject: [PATCH] test fetch --- .github/workflows/on_merge.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/on_merge.yml b/.github/workflows/on_merge.yml index 54cb5d2..93f02ce 100644 --- a/.github/workflows/on_merge.yml +++ b/.github/workflows/on_merge.yml @@ -17,6 +17,7 @@ jobs: - name: Get branch for the latest version run: | echo hello + git fetch --all --prune echo $(git for-each-ref --format='%(refname:short)' refs/heads) echo $(git for-each-ref --format='%(refname:short)' refs/heads | grep -Po '^v\d.\d(.\d)?$') echo $(git for-each-ref --format='%(refname:short)' refs/heads | grep -Po '^v\d.\d(.\d)?$' | sort -V | tail -n 1)