Skip to content

Commit

Permalink
Issue #936: bump-cs-version missed eclipsecs-sevntu-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
stoyanK7 committed Nov 26, 2022
1 parent 45ae6b1 commit 209f8f5
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .ci/bump-cs-version-in-esclipsecs-plugin.sh
@@ -0,0 +1,16 @@
#!/bin/bash
set -e

if [[ -z $1 ]]; then
echo "ERROR: version is not set"
echo "Usage: bump-cs-version-in-eclipsecs-plugin.sh <version>"
exit 1
fi

VERSION=$1
cd eclipsecs-sevntu-plugin

mvn versions:set-property -DgenerateBackupPoms=false -Dproperty=checkstyle.version -DnewVersion="$VERSION"
rm pom.xml.versionsBackup

echo "Version updated to $VERSION at eclipsecs-sevntu-plugin/pom.xml"
2 changes: 1 addition & 1 deletion .ci/bump-cs-version-in-sevntu-checks.sh
Expand Up @@ -9,7 +9,7 @@ fi

VERSION=$1
cd sevntu-checks
mvn versions:set-property -Dproperty=checkstyle.version -DnewVersion="$VERSION"
mvn versions:set-property -DgenerateBackupPoms=false -Dproperty=checkstyle.version -DnewVersion="$VERSION"
rm pom.xml.versionsBackup

echo "Version updated to $VERSION at sevntu-checks/pom.xml"
2 changes: 1 addition & 1 deletion .ci/bump-cs-version-in-sonar-plugin.sh
Expand Up @@ -10,7 +10,7 @@ fi
VERSION=$1
cd sevntu-checkstyle-sonar-plugin

mvn versions:set-property -Dproperty=checkstyle.version -DnewVersion="$VERSION"
mvn versions:set-property -DgenerateBackupPoms=false -Dproperty=checkstyle.version -DnewVersion="$VERSION"
rm pom.xml.versionsBackup

echo "Version updated to $VERSION at sevntu-checkstyle-sonar-plugin/pom.xml"
1 change: 1 addition & 0 deletions .github/workflows/bump-cs-version.yml
Expand Up @@ -31,6 +31,7 @@ jobs:
run: |
./.ci/bump-cs-version-in-sevntu-checks.sh ${{ steps.VERSION.outputs.LATEST_VERSION }}
./.ci/bump-cs-version-in-sonar-plugin.sh ${{ steps.VERSION.outputs.LATEST_VERSION }}
./.ci/bump-cs-version-in-eclipsecs-plugin.sh ${{ steps.VERSION.outputs.LATEST_VERSION }}
- name: Commit and Push
run: |
if [ "$(git status | grep 'Changes not staged\|Untracked files')" ]; then
Expand Down

0 comments on commit 209f8f5

Please sign in to comment.