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)