We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 312649d commit 3563f7eCopy full SHA for 3563f7e
1 file changed
.github/workflows/release-cut-tag.yml
@@ -25,7 +25,7 @@ jobs:
25
#Translate 'develop' to 18.x or whatever is appropriate
26
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 '/' | head -n 1 | cut -f 1 -d '.'` + 1)).x"
29
else
30
export TEMP=${{ github.ref_name }}
31
fi
0 commit comments