Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions .github/workflows/auto-update-showcases-dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Copyright 2026 FINOS
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Auto-Update Showcases Dependencies
on:
schedule:
- cron: "0 1 * * *" # Run daily at 1 AM
workflow_dispatch: {}

jobs:
update-dependencies:
if: github.repository == 'finos/legend'
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3.5.2
with:
token: ${{ secrets.FINOS_GITHUB_TOKEN }}

- name: Configure Git
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"

- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: "11"
distribution: "temurin"
cache: "maven"

- name: Update Showcase Dependencies
working-directory: ./showcases
run: |
mvn versions:use-latest-versions

- name: Verify Changes
working-directory: ./showcases
run: |
mvn -B test

- name: Commit and Push Changes
run: |
if [ -n "$(git status --porcelain showcases/pom.xml)" ]; then
git add showcases/pom.xml
git commit -m "Update showcase dependencies"
git push
else
echo "No dependency updates found."
fi
2 changes: 1 addition & 1 deletion showcases/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</properties>

<dependencies>
<!-- TODO: auto-update these on a schedule to make local development easier -->

<dependency>
<groupId>org.finos.legend.engine</groupId>
<artifactId>legend-engine-extensions-collection-generation</artifactId>
Expand Down