Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 21 additions & 7 deletions .github/workflows/PrepareNextIteration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -14,21 +14,35 @@ jobs:
permissions:
pull-requests: write
contents: write
actions: write

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NEXT_VERSION: ${{ inputs.nextVersion }}

steps:

- name: Checkout Sources
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 }}"
2 changes: 1 addition & 1 deletion check-list/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>java</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>check-list</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion docs/java-custom-rules-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>docs</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>


Expand Down
2 changes: 1 addition & 1 deletion docs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>java</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>docs</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion external-reports/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>java</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>external-reports</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion its/autoscan/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>java-its</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>it-java-autoscan</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion its/plugin/plugins/java-extension-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>it-java-plugin-plugins</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>java-extension-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion its/plugin/plugins/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>it-java-plugin</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>it-java-plugin-plugins</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion its/plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>java-its</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>it-java-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion its/plugin/tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>it-java-plugin</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>it-java-plugin-tests</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion its/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>java</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>java-its</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion its/ruling/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>java-its</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>it-java-ruling</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion java-checks-aws/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>java</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>java-checks-aws</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion java-checks-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>java</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>java-checks-common</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion java-checks-test-sources/aws/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>java-checks-test-sources</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>aws</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion java-checks-test-sources/default/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>java-checks-test-sources</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>default</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion java-checks-test-sources/java-17/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>java-checks-test-sources</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>java-17</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion java-checks-test-sources/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>java</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>java-checks-test-sources</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion java-checks-test-sources/spring-3.2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>java-checks-test-sources</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>spring-3.2</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion java-checks-test-sources/spring-web-4.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>java-checks-test-sources</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>spring-web-4.0</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion java-checks-test-sources/test-classpath-reader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>java-checks-test-sources</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>test-classpath-reader</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion java-checks-testkit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>java</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>java-checks-testkit</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion java-checks/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>java</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>java-checks</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion java-frontend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>java</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>java-frontend</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion java-jsp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>java</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>java-jsp</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion java-surefire/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>java</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>java-surefire</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<groupId>org.sonarsource.java</groupId>
<artifactId>java</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
<packaging>pom</packaging>
<name>SonarJava</name>
<description>Code Analyzer for Java :: Parent POM</description>
Expand Down
2 changes: 1 addition & 1 deletion sonar-java-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>java</artifactId>
<version>8.24.0-SNAPSHOT</version>
<version>9.7-TESTING</version>
</parent>

<artifactId>sonar-java-plugin</artifactId>
Expand Down
Loading