diff --git a/.github/workflows/PrepareNextIteration.yml b/.github/workflows/PrepareNextIteration.yml index 31cf588929..db06333c89 100644 --- a/.github/workflows/PrepareNextIteration.yml +++ b/.github/workflows/PrepareNextIteration.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: nextVersion: - description: Version number of the next iteration + description: Version number of the next iteration (e.g. 8.4-SNAPSHOT) required: true jobs: @@ -14,6 +14,11 @@ jobs: permissions: pull-requests: write contents: write + actions: write + + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NEXT_VERSION: ${{ inputs.nextVersion }} steps: @@ -21,14 +26,23 @@ jobs: uses: actions/checkout@v4 - name: Update Version Number - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NEXT_VERSION: ${{ inputs.nextVersion }} + id: update-version run: | git config user.name "${GITHUB_ACTOR}" git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" - git checkout -b gh-action/next-iteration + git config --global core.autocrlf input + git config --global core.safecrlf true + BRANCH="gh-action/next-iteration.${{ github.run_id }}" + git checkout -b "${BRANCH}" mvn versions:set -DgenerateBackupPoms=false -DnewVersion="${NEXT_VERSION}" git commit -m 'Prepare next development iteration' -a - git push --set-upstream origin gh-action/next-iteration - gh pr create -B master --title 'Prepare next development iteration' --body '' + git push --set-upstream origin "${BRANCH}" + echo "branch=${BRANCH}" >> $GITHUB_OUTPUT + + - name: Create Pull Request + run: | + gh pr create --base master --title "Prepare next development iteration ${NEXT_VERSION}" --body '' + + - name: Trigger Continuous Integration + run: | + gh workflow run build.yml --ref "${{ steps.update-version.outputs.branch }}" diff --git a/check-list/pom.xml b/check-list/pom.xml index 69245a9359..2d1af2857f 100644 --- a/check-list/pom.xml +++ b/check-list/pom.xml @@ -7,7 +7,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.7-TESTING check-list diff --git a/docs/java-custom-rules-example/pom.xml b/docs/java-custom-rules-example/pom.xml index ac70565483..d058a6a662 100644 --- a/docs/java-custom-rules-example/pom.xml +++ b/docs/java-custom-rules-example/pom.xml @@ -4,7 +4,7 @@ org.sonarsource.java docs - 8.24.0-SNAPSHOT + 9.7-TESTING diff --git a/docs/pom.xml b/docs/pom.xml index fc0ce165fd..4e60e112d8 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.7-TESTING docs diff --git a/external-reports/pom.xml b/external-reports/pom.xml index 764ef24b95..e63496b3eb 100644 --- a/external-reports/pom.xml +++ b/external-reports/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.7-TESTING external-reports diff --git a/its/autoscan/pom.xml b/its/autoscan/pom.xml index 6aece8f8dd..bebb75ed74 100644 --- a/its/autoscan/pom.xml +++ b/its/autoscan/pom.xml @@ -6,7 +6,7 @@ org.sonarsource.java java-its - 8.24.0-SNAPSHOT + 9.7-TESTING it-java-autoscan diff --git a/its/plugin/plugins/java-extension-plugin/pom.xml b/its/plugin/plugins/java-extension-plugin/pom.xml index bb8b1d86b8..376af5195c 100644 --- a/its/plugin/plugins/java-extension-plugin/pom.xml +++ b/its/plugin/plugins/java-extension-plugin/pom.xml @@ -4,7 +4,7 @@ org.sonarsource.java it-java-plugin-plugins - 8.24.0-SNAPSHOT + 9.7-TESTING java-extension-plugin diff --git a/its/plugin/plugins/pom.xml b/its/plugin/plugins/pom.xml index 53453ca1e2..79754534be 100644 --- a/its/plugin/plugins/pom.xml +++ b/its/plugin/plugins/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java it-java-plugin - 8.24.0-SNAPSHOT + 9.7-TESTING it-java-plugin-plugins diff --git a/its/plugin/pom.xml b/its/plugin/pom.xml index a0b13e1a99..cdb2047cf5 100644 --- a/its/plugin/pom.xml +++ b/its/plugin/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java-its - 8.24.0-SNAPSHOT + 9.7-TESTING it-java-plugin diff --git a/its/plugin/tests/pom.xml b/its/plugin/tests/pom.xml index e3d57a5c49..6dc43f471a 100644 --- a/its/plugin/tests/pom.xml +++ b/its/plugin/tests/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java it-java-plugin - 8.24.0-SNAPSHOT + 9.7-TESTING it-java-plugin-tests diff --git a/its/pom.xml b/its/pom.xml index 37020d8ea3..25ec6ce417 100644 --- a/its/pom.xml +++ b/its/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.7-TESTING java-its diff --git a/its/ruling/pom.xml b/its/ruling/pom.xml index cb98756d78..8d9a5c2c58 100644 --- a/its/ruling/pom.xml +++ b/its/ruling/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java-its - 8.24.0-SNAPSHOT + 9.7-TESTING it-java-ruling diff --git a/java-checks-aws/pom.xml b/java-checks-aws/pom.xml index 536d735f0e..bb8b8cd3a9 100644 --- a/java-checks-aws/pom.xml +++ b/java-checks-aws/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.7-TESTING java-checks-aws diff --git a/java-checks-common/pom.xml b/java-checks-common/pom.xml index 940d949b13..1ff72272aa 100644 --- a/java-checks-common/pom.xml +++ b/java-checks-common/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.7-TESTING java-checks-common diff --git a/java-checks-test-sources/aws/pom.xml b/java-checks-test-sources/aws/pom.xml index 53fc552cc2..18e514cb7f 100644 --- a/java-checks-test-sources/aws/pom.xml +++ b/java-checks-test-sources/aws/pom.xml @@ -7,7 +7,7 @@ org.sonarsource.java java-checks-test-sources - 8.24.0-SNAPSHOT + 9.7-TESTING aws diff --git a/java-checks-test-sources/default/pom.xml b/java-checks-test-sources/default/pom.xml index 00d59ddbd0..5261109959 100644 --- a/java-checks-test-sources/default/pom.xml +++ b/java-checks-test-sources/default/pom.xml @@ -7,7 +7,7 @@ org.sonarsource.java java-checks-test-sources - 8.24.0-SNAPSHOT + 9.7-TESTING default diff --git a/java-checks-test-sources/java-17/pom.xml b/java-checks-test-sources/java-17/pom.xml index c48c50a867..b79c138d01 100644 --- a/java-checks-test-sources/java-17/pom.xml +++ b/java-checks-test-sources/java-17/pom.xml @@ -7,7 +7,7 @@ org.sonarsource.java java-checks-test-sources - 8.24.0-SNAPSHOT + 9.7-TESTING java-17 diff --git a/java-checks-test-sources/pom.xml b/java-checks-test-sources/pom.xml index 44427f4adc..3bade2b4ce 100644 --- a/java-checks-test-sources/pom.xml +++ b/java-checks-test-sources/pom.xml @@ -7,7 +7,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.7-TESTING java-checks-test-sources diff --git a/java-checks-test-sources/spring-3.2/pom.xml b/java-checks-test-sources/spring-3.2/pom.xml index 23601dbf02..b3b17dda41 100644 --- a/java-checks-test-sources/spring-3.2/pom.xml +++ b/java-checks-test-sources/spring-3.2/pom.xml @@ -7,7 +7,7 @@ org.sonarsource.java java-checks-test-sources - 8.24.0-SNAPSHOT + 9.7-TESTING spring-3.2 diff --git a/java-checks-test-sources/spring-web-4.0/pom.xml b/java-checks-test-sources/spring-web-4.0/pom.xml index 3b68ca576d..59195b99ae 100644 --- a/java-checks-test-sources/spring-web-4.0/pom.xml +++ b/java-checks-test-sources/spring-web-4.0/pom.xml @@ -6,7 +6,7 @@ org.sonarsource.java java-checks-test-sources - 8.24.0-SNAPSHOT + 9.7-TESTING spring-web-4.0 diff --git a/java-checks-test-sources/test-classpath-reader/pom.xml b/java-checks-test-sources/test-classpath-reader/pom.xml index 5fecf78ef0..79485b3dbc 100644 --- a/java-checks-test-sources/test-classpath-reader/pom.xml +++ b/java-checks-test-sources/test-classpath-reader/pom.xml @@ -6,7 +6,7 @@ org.sonarsource.java java-checks-test-sources - 8.24.0-SNAPSHOT + 9.7-TESTING test-classpath-reader diff --git a/java-checks-testkit/pom.xml b/java-checks-testkit/pom.xml index 008dd9482d..f324177574 100644 --- a/java-checks-testkit/pom.xml +++ b/java-checks-testkit/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.7-TESTING java-checks-testkit diff --git a/java-checks/pom.xml b/java-checks/pom.xml index c72ccb9dad..7aef940689 100644 --- a/java-checks/pom.xml +++ b/java-checks/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.7-TESTING java-checks diff --git a/java-frontend/pom.xml b/java-frontend/pom.xml index 3c82dafd07..897073490e 100644 --- a/java-frontend/pom.xml +++ b/java-frontend/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.7-TESTING java-frontend diff --git a/java-jsp/pom.xml b/java-jsp/pom.xml index 5f96e1046c..039cc56d0b 100644 --- a/java-jsp/pom.xml +++ b/java-jsp/pom.xml @@ -6,7 +6,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.7-TESTING java-jsp diff --git a/java-surefire/pom.xml b/java-surefire/pom.xml index 078aa970da..ffccf2a726 100644 --- a/java-surefire/pom.xml +++ b/java-surefire/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.7-TESTING java-surefire diff --git a/pom.xml b/pom.xml index df89bef411..b5152b9158 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.7-TESTING pom SonarJava Code Analyzer for Java :: Parent POM diff --git a/sonar-java-plugin/pom.xml b/sonar-java-plugin/pom.xml index 52bbe2e593..c641ec103b 100644 --- a/sonar-java-plugin/pom.xml +++ b/sonar-java-plugin/pom.xml @@ -6,7 +6,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.7-TESTING sonar-java-plugin