@@ -2,10 +2,27 @@ name: Update For Next Release
22
33on :
44 workflow_call :
5+ inputs :
6+ nextReleaseVersion :
7+ description : ' The version of the release, for example: 4.35'
8+ type : string
9+ required : true
10+ botName :
11+ description : The name of the bot that authos the changes
12+ type : string
13+ required : true
14+ botMail :
15+ description : The name of the bot that authos the changes
16+ type : string
17+ required : true
18+ secrets :
19+ githubBotPAT :
20+ description : The personal access token (with scope 'public_repo') of the bot to push a required change to a branch.
21+ required : true
22+
523jobs :
624 update :
725 runs-on : ubuntu-latest
8- if : contains(github.event.milestone.description, 'Release')
926 steps :
1027 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1128 with :
@@ -23,20 +40,20 @@ jobs:
2340 cache : maven
2441 - name : Update Versions
2542 run : >-
26- mvn -U -Pbuild-individual-bundles -ntp
27- org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=${{ github.event.milestone.title }}.0-SNAPSHOT
28- org.eclipse.tycho:tycho-versions-plugin:set-parent-version -DnewParentVersion=${{ github.event.milestone.title }}.0-SNAPSHOT
29- - name : Create Pull Request for Release ${{ github.event.milestone.title }}
43+ mvn -U -B -ntp
44+ org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=${{ inputs.nextReleaseVersion }}.0-SNAPSHOT
45+ org.eclipse.tycho:tycho-versions-plugin:set-parent-version -DnewParentVersion=${{ inputs.nextReleaseVersion }}.0-SNAPSHOT
46+ - name : Create Pull Request for Release ${{ inputs.nextReleaseVersion }}
3047 uses : peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
3148 with :
32- commit-message : Update for release ${{ github.event.milestone.title }}
33- branch : update_R${{ github.event.milestone.title }}
34- title : Update for release ${{ github.event.milestone.title }}
35- body : A new release milstone was created, please review the changes and merge if appropriate.
49+ token : ${{ secrets.githubBotPAT }}
50+ commit-message : Update for release ${{ inputs.nextReleaseVersion }}
51+ branch : update_R${{ inputs.nextReleaseVersion }}
52+ title : Update for release ${{ inputs.nextReleaseVersion }}
53+ body : A new release milestone was created, please review the changes and merge if appropriate.
54+ author : ${{ inputs.botName }} <${{ inputs.botMail }}>
3655 delete-branch : true
3756 milestone : ${{ github.event.milestone.number }}
3857 add-paths : |
3958 pom.xml
4059 **/pom.xml
41- **/*.MF
42-
0 commit comments