We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
git ls-remote
1 parent d3577e2 commit 5f8a792Copy full SHA for 5f8a792
1 file changed
.github/workflows/generate-top-index.yml
@@ -28,7 +28,7 @@ jobs:
28
- name: Get stable branches
29
id: branch
30
run: |
31
- branches=$(git branch -r | grep -E 'origin/stable[0-9]+' | sed 's/.*stable//' | sort -n -r | tr '\n' ' ')
+ branches=$(git ls-remote --heads origin "heads/stable[0-9][0-9]"| awk '{gsub(/^refs\/heads\/stable/, "", $2); print $2}' | sort -n -r | tr '\n' ' ')
32
echo "branches=$branches" >> $GITHUB_OUTPUT
33
34
- name: Setup php
0 commit comments