Skip to content

Commit

Permalink
Add workflow to automate target updates
Browse files Browse the repository at this point in the history
  • Loading branch information
laeubi committed Feb 6, 2025
1 parent 334d2ae commit 88e4398
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/updateTarget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Target Platform Updates

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
push:
branches:
- main
paths:
- '**.target'


jobs:
update:
uses: eclipse-platform/eclipse.platform.releng.aggregator/.github/workflows/updateTarget.yml@master
with:
author: M2E Bot <[email protected]>
path: 'target-platform'
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
22 changes: 22 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,28 @@
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho-version}</version>
</plugin>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-version-bump-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>update-target</id>
<configuration>
<updateEmptyVersion>false</updateEmptyVersion>
<allowMajorUpdates>false</allowMajorUpdates>
<!-- <mavenRulesUri>${project.basedir}/update-rules.xml</mavenRulesUri>-->
<updateSiteDiscovery>
<strategy>parent</strategy>
<strategy>versionPattern:releases/(\d+)\.(\d+).(\d+)</strategy>
<strategy>versionPattern:updates/(\d+)\.(\d+)/</strategy>
<strategy>versionPattern:updates-(\d+)\.(\d+)/</strategy>
<strategy>datePattern</strategy>
</updateSiteDiscovery>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
Expand Down

0 comments on commit 88e4398

Please sign in to comment.