This repository has been archived by the owner on Sep 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (46 loc) · 1.63 KB
/
update.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
41
42
43
44
45
46
47
# SPDX-FileCopyrightText: The maven-build-process Authors
# SPDX-License-Identifier: 0BSD
name: Update Dependencies
on:
schedule:
- cron: 0 0 * * THU
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/managed-java
- uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- id: update
name: Update properties
run: mvn --batch-mode --update-snapshots --define generateBackupPoms=false versions:update-properties
- id: cpr
name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.PAT }}
commit-message: Update properties to their latest versions
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
title: Update properties to their latest versions
body: |
`mvn --batch-mode --update-snapshots --define generateBackupPoms=false versions:update-properties`
labels: |
enhancement
assignees: |
sebhoss
draft: false
base: main
branch: update-properties
delete-branch: true
- id: automerge
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 }}