File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -23,19 +23,17 @@ jobs:
2323 echo OUTPUT="$(git ls-remote --tags origin | grep ${TAG##*/})" >> $GITHUB_ENV
2424
2525 if [[ -n "$OUTPUT" ]]; then
26- git tag "${TAG##*/}-rc-`expr "${OUTPUT:0-1}" + 1`"
26+ echo NEW_TAG= "${TAG##*/}-rc-`expr "${OUTPUT:0-1}" + 1`" >> $GITHUB_ENV
2727 else
28- git tag "${TAG##*/}-rc-1"
28+ echo NEW_TAG= "${TAG##*/}-rc-1" >> $GITHUB_ENV
2929 fi
30+
31+ git tag $NEW_TAG
3032 git push origin --tags
3133 shell : bash
3234
33- # - name: Create release
34- # env:
35- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36- # run: |
37- # echo ${TAG##*/}
38- # gh release create ${TAG##*/} \
39- # --repo="$GITHUB_REPOSITORY" \
40- # --title="${TAG##*/}rc" \
41- # --generate-notes
35+ - name : Create release
36+ env :
37+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38+ run : |
39+ echo $NEW_TAG
You can’t perform that action at this time.
0 commit comments