@@ -21,36 +21,36 @@ jobs:
2121
2222 steps :
2323
24- # - name: Checkout Sources
25- # uses: actions/checkout@v4
26-
27- # - name: Update Version Number
28- # id: update-version
29- # run: |
30- # git config user.name "${GITHUB_ACTOR}"
31- # git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
32- # git config --global core.autocrlf input
33- # git config --global core.safecrlf true
34- # BRANCH="gh-action/next-iteration.${{ github.run_id }}"
35- # git checkout -b "${BRANCH}"
36- # mvn versions:set -DgenerateBackupPoms=false -DnewVersion="${NEXT_VERSION}"
37- # git commit -m 'Prepare next development iteration' -a
38- # git push --set-upstream origin "${BRANCH}"
39- # echo "branch=${BRANCH}" >> $GITHUB_OUTPUT
40-
41- # - name: Create Pull Request
42- # id: create-pr
43- # run: |
44- # URL=$(gh pr create --base master --title "Prepare next development iteration ${NEXT_VERSION}" --body '')
45- # echo "url=${URL}" >> $GITHUB_OUTPUT
24+ - name : Checkout Sources
25+ uses : actions/checkout@v4
26+
27+ - name : Update Version Number
28+ id : update-version
29+ run : |
30+ git config user.name "${GITHUB_ACTOR}"
31+ git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
32+ git config --global core.autocrlf input
33+ git config --global core.safecrlf true
34+ BRANCH="gh-action/next-iteration.${{ github.run_id }}"
35+ git checkout -b "${BRANCH}"
36+ mvn versions:set -DgenerateBackupPoms=false -DnewVersion="${NEXT_VERSION}"
37+ git commit -m 'Prepare next development iteration' -a
38+ git push --set-upstream origin "${BRANCH}"
39+ echo "branch=${BRANCH}" >> $GITHUB_OUTPUT
40+
41+ - name : Create Pull Request
42+ id : create-pr
43+ run : |
44+ URL=$(gh pr create --base master --title "Prepare next development iteration ${NEXT_VERSION}" --body '')
45+ echo "url=${URL}" >> $GITHUB_OUTPUT
4646
4747 - name : Trigger Continuous Integration
4848 run : |
49- gh pr close https://github.com/SonarSource/sonar-java/pull/5430
50- gh pr reopen https://github.com/SonarSource/sonar-java/pull/5430
51-
52- # - name: Summary
53- # run: |
54- # echo "Generated ${{steps.create-pr.outputs.url}}." >> $GITHUB_STEP_SUMMARY
55- # echo "New version set to ${NEXT_VERSION}." >> $GITHUB_STEP_SUMMARY
56- # echo "Tip: close and reopen the PR to trigger CI. " >> $GITHUB_STEP_SUMMARY
49+ gh pr close ${{steps.create-pr.outputs.url}}
50+ gh pr reopen ${{steps.create-pr.outputs.url}}
51+
52+ - name : Summary
53+ run : |
54+ echo "Generated ${{steps.create-pr.outputs.url}}." >> $GITHUB_STEP_SUMMARY
55+ echo "New version set to ${NEXT_VERSION}." >> $GITHUB_STEP_SUMMARY
56+ echo "Tip: close and reopen the PR to trigger CI. " >> $GITHUB_STEP_SUMMARY
0 commit comments