File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -24,18 +24,19 @@ jobs:
2424 - name : 📑 Create tag
2525 run : |
2626 git ls-remote --tags origin | grep ${TAG##*/}
27- echo _VERSION ="$(git ls-remote --tags origin | grep ${TAG##*/})" >> $GITHUB_ENV
27+ echo OUTPUT ="$(git ls-remote --tags origin | grep ${TAG##*/})" >> $GITHUB_ENV
2828
29- if [[ -n "$_VERSION" ]]; then
30- echo NEW_TAG="${TAG##*/}-rc-`expr "${_VERSION:0-1}" + 1`" >> $GITHUB_ENV
29+ echo output $OUTPUT
30+
31+ if [[ -n "$OUTPUT" ]]; then
32+ echo NEW_TAG="${TAG##*/}-rc-`expr "${OUTPUT:0-1}" + 1`" >> $GITHUB_ENV
3133 else
3234 echo NEW_TAG="${TAG##*/}-rc-1" >> $GITHUB_ENV
3335 fi
3436
3537 git tag $NEW_TAG
3638 git push origin --tags
3739
38- echo _VERSION $_VERSION
3940 echo tag $TAG
4041 echo new_tag $NEW_TAG
4142 shell : bash
You can’t perform that action at this time.
0 commit comments