We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b197917 commit 4c6d4e9Copy full SHA for 4c6d4e9
1 file changed
.github/workflows/release-cut-tag.yml
@@ -23,9 +23,9 @@ jobs:
23
GH_TOKEN: ${{ github.token }}
24
run: |
25
#Translate 'develop' to 18.x or whatever is appropriate
26
- if [ "develop" == "${{ github.ref_name }}" ]; then
+ if [ "develop" = "${{ github.ref_name }}" ]; then
27
#NB normally we only clone just the head ref, but fetch-depth: 0 above gets *all* the history
28
- export TEMP="$((`git branch -a | grep r/ | cut -f 4 -d '/' | cut -f 1 -d '.'` + 1)).x"
+ export TEMP="$((`git branch -a | grep r/ | cut -f 4 -d '/' | sort | tail -n 1 | cut -f 1 -d '.'` + 1)).x"
29
else
30
export TEMP=${{ github.ref_name }}
31
fi
0 commit comments