Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit e0a8a59

Browse files
authored
chore(skip-release): comment out 'increment version' step
Signed-off-by: Stephane Bouchet <[email protected]>
1 parent 8758e09 commit e0a8a59

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,20 @@ jobs:
7979
git push origin $PLUGIN_VERSION
8080
8181
# Set next SNAPSHOT version
82-
- name: Increment Plugin Version
83-
env:
84-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85-
run: |
86-
CURRENT_VERSION=$(grep "projectVersion=" gradle.properties | cut -d'=' -f2)
87-
IFS="-" read -ra VERSION_PARTS <<< "$CURRENT_VERSION"
88-
IFS="." read -ra VERSION_NUM <<< "${VERSION_PARTS[0]}"
89-
((VERSION_NUM[2]++))
90-
NEW_VERSION="${VERSION_NUM[0]}.${VERSION_NUM[1]}.${VERSION_NUM[2]}-SNAPSHOT"
91-
awk -v new_version="$NEW_VERSION" '/projectVersion=/{sub(/=.*/, "=" new_version)}1' gradle.properties > tmpfile && mv tmpfile gradle.properties
92-
echo "Set $NEW_VERSION in gradle.properties"
93-
git commit -sam "chore(skip-release): set version to $NEW_VERSION"
94-
git push origin main
82+
# TODO uncomment this when CI ( prow/integration tests ) is stable enough, or bypass github settings
83+
#- name: Increment Plugin Version
84+
# env:
85+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86+
# run: |
87+
# CURRENT_VERSION=$(grep "projectVersion=" gradle.properties | cut -d'=' -f2)
88+
# IFS="-" read -ra VERSION_PARTS <<< "$CURRENT_VERSION"
89+
# IFS="." read -ra VERSION_NUM <<< "${VERSION_PARTS[0]}"
90+
# ((VERSION_NUM[2]++))
91+
# NEW_VERSION="${VERSION_NUM[0]}.${VERSION_NUM[1]}.${VERSION_NUM[2]}-SNAPSHOT"
92+
# awk -v new_version="$NEW_VERSION" '/projectVersion=/{sub(/=.*/, "=" new_version)}1' gradle.properties > tmpfile && mv tmpfile gradle.properties
93+
# echo "Set $NEW_VERSION in gradle.properties"
94+
# git commit -sam "chore(skip-release): set version to $NEW_VERSION"
95+
# git push origin main
9596

9697
- name: Simple conventional changelog
9798
uses: lstocchi/simple-conventional-changelog@13071c09073f5deddf03d44d9af6a8b0f81ef227 #0.0.11

0 commit comments

Comments
 (0)