-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (39 loc) · 1.33 KB
/
update-parent.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# SPDX-FileCopyrightText: The Storage-Units Authors
# SPDX-License-Identifier: 0BSD
name: Update Parent
on:
schedule:
- cron: 0 1 5 * *
jobs:
parent:
runs-on: ubuntu-latest
steps:
- name: Clone Git Repository
uses: actions/checkout@v4
- uses: ./.github/actions/managed-java
- name: Update Parent
run: mvn --batch-mode --define generateBackupPoms=false versions:update-parent
- id: cpr
name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.PAT }}
commit-message: Update parent to latest version
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
title: Update parent to latest version
body: |
`mvn --batch-mode --define generateBackupPoms=false versions:update-parent`
labels: |
enhancement
assignees: |
sebhoss
draft: false
base: main
branch: update-parent
delete-branch: true
- name: Enable Pull Request Automerge
if: steps.cpr.outputs.pull-request-operation == 'created'
run: gh pr merge --rebase --auto ${{ steps.cpr.outputs.pull-request-number }}
env:
GH_TOKEN: ${{ secrets.PAT }}