Skip to content

Commit

Permalink
Merge pull request #3 from laeubi/automate_target_updates
Browse files Browse the repository at this point in the history
Add workflow to automate target updates
  • Loading branch information
laeubi authored Feb 6, 2025
2 parents 334d2ae + 4eb514f commit d4e66b2
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: 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: M2E Bot <m2e-bot@eclipse.org>
path: 'target-platform'
secrets:
token: ${{ secrets.M2E_BOT_PAT }}
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 d4e66b2

Please sign in to comment.