-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Update target a shared workflow and move configuration into pom
The workflow to update the target file is quite convenient and proven to work well. This now moves the configuration into the pom and makes the workflow a shared one so it can be used in other projects easily.
- Loading branch information
Showing
4 changed files
with
94 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Check for Target Platform updates | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 */2 * * *' | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- '**.target' | ||
|
||
|
||
jobs: | ||
update: | ||
uses: eclipse-platform/eclipse.platform.releng.aggregator/.github/workflows/updateTarget.yml@master | ||
with: | ||
author: Eclipse Releng Bot <[email protected]> | ||
path: 'eclipse.platform.releng.prereqs.sdk' | ||
secrets: | ||
token: ${{ secrets.RELENG_BOT_PAT }} |
This file contains 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 |
---|---|---|
|
@@ -5,14 +5,22 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- '**.target' | ||
workflow_call: | ||
inputs: | ||
author: | ||
description: Defines the committer / author that should be used for the commit | ||
required: false | ||
type: string | ||
default: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com> | ||
path: | ||
description: Defines the committer / author that should be used for the commit | ||
required: true | ||
type: string | ||
secrets: | ||
token: | ||
description: Personal Access Token to use for creating pull-requests | ||
required: false | ||
default: ${{ secrets.GITHUB_TOKEN }} | ||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
|
@@ -33,11 +41,8 @@ jobs: | |
cache: maven | ||
- name: Update Target Platform | ||
run: >- | ||
mvn -ntp -f eclipse.platform.releng.prereqs.sdk | ||
org.eclipse.tycho.extras:tycho-version-bump-plugin:4.0.9:update-target | ||
-DallowMajorUpdates=false | ||
-Ddiscovery=parent | ||
-Dmaven.version.rules=update-rules.xml | ||
mvn -ntp -f ${{ inputs.path }} | ||
tycho-version-bump:update-target@update-target | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5 | ||
with: | ||
|
@@ -47,8 +52,8 @@ jobs: | |
body: Please review the changes and merge if appropriate, or cherry pick individual updates. | ||
delete-branch: true | ||
draft: false | ||
token: ${{ secrets.RELENG_BOT_PAT }} | ||
committer: Eclipse Releng Bot <[email protected]> | ||
author: Eclipse Releng Bot <[email protected]> | ||
token: ${{ secrets.token }} | ||
committer: ${{ inputs.author }} | ||
author: ${{ inputs.author }} | ||
add-paths: | | ||
**/*.target |
This file contains 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