We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38acb67 commit a1f11c6Copy full SHA for a1f11c6
.github/workflows/pick-to-staging.yml
@@ -25,7 +25,7 @@ jobs:
25
26
- name: Fetch and checkout latest staging branch
27
run: |
28
- branch=$(git ls-remote --heads origin 'staging*' | tail -1 | awk 'gsub(".*refs/heads/","")')
+ branch=$(git ls-remote --heads origin 'staging/*' | awk 'gsub(".*refs/heads/","")' | sort -V | tail -1)
29
git fetch origin $branch
30
git checkout $branch
31
0 commit comments