-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OC-117: added 'Bump version' action for updating plugin and openclove…
…r core versions via GH actions, renamed 'B Release Jenkins Clover Plugin' to 'CD' to follow the naming convention (some metrics rely on this name)
- Loading branch information
1 parent
82df99d
commit 24118bd
Showing
4 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: A Test master on JDK8 | ||
name: A quick test on JDK8 | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Bump version | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
pluginVersion: | ||
description: 'Jenkins Clover Plugin version' | ||
required: true | ||
type: string | ||
opencloverVersion: | ||
description: 'OpenClover version' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 8.0 | ||
distribution: temurin | ||
|
||
- name: Prepare release tag | ||
run: | | ||
git config user.name "Marek Parfianowicz (github-actions)" | ||
git config user.email "marek.parfianowicz+github-actions@gmail.com" | ||
echo "Updating pom.xml files to version ${{ inputs.pluginVersion }} and ${{ inputs.opencloverVersion }}" | ||
mvn versions:set-property -Dproperty=revision "-DnewVersion=${{ inputs.pluginVersion }}" -DgenerateBackupPoms=false | ||
mvn versions:set-property -Dproperty=clover.version "-DnewVersion=${{ inputs.opencloverVersion }}" -DgenerateBackupPoms=false | ||
git add . | ||
git commit -m "Prepare release tag clover-${{ inputs.releaseVersion }}" | ||
git tag clover-${{ inputs.releaseVersion }} | ||
echo "Pushing commits and tag clover-${{ inputs.releaseVersion }}" | ||
git push origin | ||
git push origin clover-${{ inputs.releaseVersion }} |
2 changes: 1 addition & 1 deletion
2
...flows/B-release-jenkins-clover-plugin.yml → .github/workflows/CD.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: B Release Jenkins Clover Plugin | ||
name: CD | ||
on: | ||
workflow_dispatch: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters