-
Notifications
You must be signed in to change notification settings - Fork 89
Add manual trigger for 'updateRelease'-workflow and use project-bot #2571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
HannesWell
wants to merge
1
commit into
eclipse-platform:master
from
HannesWell:enhance-updateRelease-workflow
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -2,10 +2,26 @@ name: Update For Next Release | |
|
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| nextReleaseVersion: | ||
| description: 'The version of the release, for example: 4.35' | ||
| type: string | ||
| required: true | ||
| botName: | ||
| description: The name of the bot that authos the changes | ||
| type: string | ||
| default: 'Eclipse Releng Bot' | ||
| botMail: | ||
| description: The name of the bot that authos the changes | ||
| type: string | ||
| default: '[email protected]' | ||
| secrets: | ||
| githubBotPAT: | ||
| description: The personal access token (with scope 'public_repo') of the bot to push a required change to a branch. | ||
|
|
||
| jobs: | ||
| update: | ||
| runs-on: ubuntu-latest | ||
| if: contains(github.event.milestone.description, 'Release') | ||
| steps: | ||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| with: | ||
|
|
@@ -24,15 +40,18 @@ jobs: | |
| - name: Update Versions | ||
| run: >- | ||
| mvn -U -B -ntp | ||
| org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=${{ github.event.milestone.title }}.0-SNAPSHOT | ||
| org.eclipse.tycho:tycho-versions-plugin:set-parent-version -DnewParentVersion=${{ github.event.milestone.title }}.0-SNAPSHOT | ||
| - name: Create Pull Request for Release ${{ github.event.milestone.title }} | ||
| org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=${{ inputs.nextReleaseVersion }}.0-SNAPSHOT | ||
| org.eclipse.tycho:tycho-versions-plugin:set-parent-version -DnewParentVersion=${{ inputs.nextReleaseVersion }}.0-SNAPSHOT | ||
| - name: Create Pull Request for Release ${{ inputs.nextReleaseVersion }} | ||
| uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5 | ||
| with: | ||
| commit-message: Update for release ${{ github.event.milestone.title }} | ||
| branch: update_R${{ github.event.milestone.title }} | ||
| title: Update for release ${{ github.event.milestone.title }} | ||
| body: A new release milstone was created, please review the changes and merge if appropriate. | ||
| token: ${{ secrets.githubBotPAT || secrets.GITHUB_TOKEN }} | ||
| commit-message: Update for release ${{ inputs.nextReleaseVersion }} | ||
| branch: update_R${{ inputs.nextReleaseVersion }} | ||
| title: Update for release ${{ inputs.nextReleaseVersion }} | ||
| body: A new release milestone was created, please review the changes and merge if appropriate. | ||
| author: ${{ inputs.botName }} <${{ inputs.botMail }}> | ||
| committer: ${{ inputs.botName }} <${{ inputs.botMail }}> | ||
| delete-branch: true | ||
| milestone: ${{ github.event.milestone.number }} | ||
| add-paths: | | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.