Skip to content

Commit 11e9141

Browse files
committed
Add workflow to automate target updates
1 parent 334d2ae commit 11e9141

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.github/workflows/updateTarget.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Target Platform Updates
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
7+
on:
8+
workflow_dispatch:
9+
schedule:
10+
- cron: '0 0 * * *'
11+
push:
12+
branches:
13+
- main
14+
paths:
15+
- '**.target'
16+
17+
18+
jobs:
19+
update:
20+
uses: eclipse-platform/eclipse.platform.releng.aggregator/.github/workflows/updateTarget.yml@master
21+
with:
22+
author: M2E Bot <[email protected]>
23+
path: 'target-platform'
24+
secrets:
25+
token: ${{ secrets.GITHUB_TOKEN }}

pom.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,28 @@
180180
<artifactId>tycho-p2-repository-plugin</artifactId>
181181
<version>${tycho-version}</version>
182182
</plugin>
183+
<plugin>
184+
<groupId>org.eclipse.tycho.extras</groupId>
185+
<artifactId>tycho-version-bump-plugin</artifactId>
186+
<version>${tycho-version}</version>
187+
<executions>
188+
<execution>
189+
<id>update-target</id>
190+
<configuration>
191+
<updateEmptyVersion>false</updateEmptyVersion>
192+
<allowMajorUpdates>false</allowMajorUpdates>
193+
<!-- <mavenRulesUri>${project.basedir}/update-rules.xml</mavenRulesUri>-->
194+
<updateSiteDiscovery>
195+
<strategy>parent</strategy>
196+
<strategy>versionPattern:releases/(\d+)\.(\d+).(\d+)</strategy>
197+
<strategy>versionPattern:updates/(\d+)\.(\d+)/</strategy>
198+
<strategy>versionPattern:updates-(\d+)\.(\d+)/</strategy>
199+
<strategy>datePattern</strategy>
200+
</updateSiteDiscovery>
201+
</configuration>
202+
</execution>
203+
</executions>
204+
</plugin>
183205
<plugin>
184206
<groupId>org.eclipse.tycho</groupId>
185207
<artifactId>tycho-surefire-plugin</artifactId>

0 commit comments

Comments
 (0)