Merge pull request #1722 from avano/bump-dependencies #484
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 <actions@workflow.github.com>' | |