Skip to content

Merge pull request #1285 from tnb-software/dependabot/maven/org.asser… #346

Merge pull request #1285 from tnb-software/dependabot/maven/org.asser…

Merge pull request #1285 from tnb-software/dependabot/maven/org.asser… #346

Workflow file for this run

name: Sync
on:
push:
branches:
- main
# Use a personal token so that this action will trigger other actions (when the PR is created, all other checks are triggered)
jobs:
sync-bom:
name: Sync
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Build BOM
run: |
# We need to first update BOM and only then update system-x-all, as that uses the BOM
mvn --no-transfer-progress --activate-profiles update-bom clean install
- name: Build system-x-all
run: |
mvn --no-transfer-progress --activate-profiles update-system-x-all clean install
- uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.TNB_APP_APP_ID }}
private_key: ${{ secrets.TNB_APP_PRIVATE_KEY }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ steps.generate-token.outputs.token }}
add-paths: |
bom/pom.xml
system-x/services/all/pom.xml
commit-message: '[Sync] Sync BOM / System-X ALL'
branch: 'action-sync'
delete-branch: true
title: 'Sync'
assignees: 'avano'
author: 'GitHub Actions <[email protected]>'