File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -105,15 +105,16 @@ jobs:
105
105
fi
106
106
107
107
NEW_VERSION="$MAJOR.$MINOR.$PATCH"
108
- echo "Bumping version from $CURRENT_VERSION to $NEW_VERSION"
108
+ PRE_RELEASE_TAG="$NEW_VERSION-pre"
109
+ echo "Bumping version from $CURRENT_VERSION to $PRE_RELEASE_TAG"
109
110
110
111
git config user.name "GitHub Actions"
111
112
git config user.email "actions@github.com"
112
113
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git
113
114
git push origin ${{ github.ref_name }}
114
115
115
- git tag -a "$NEW_VERSION " -m "$NEW_VERSION "
116
- git push origin "$NEW_VERSION "
116
+ git tag -a "$PRE_RELEASE_TAG " -m "$PRE_RELEASE_TAG "
117
+ git push origin "$PRE_RELEASE_TAG "
117
118
118
119
# Generate release notes from commits since last tag
119
120
if [ -z "$LATEST_TAG" ]; then
@@ -125,7 +126,7 @@ jobs:
125
126
echo "Release notes:"
126
127
echo "$RELEASE_NOTES"
127
128
128
- gh release create "$NEW_VERSION " \
129
- --title "Pre-release $NEW_VERSION " \
129
+ gh release create "$PRE_RELEASE_TAG " \
130
+ --title "Pre-release $PRE_RELEASE_TAG " \
130
131
--notes "$RELEASE_NOTES" \
131
132
--prerelease
You can’t perform that action at this time.
0 commit comments