-
Notifications
You must be signed in to change notification settings - Fork 29
50 lines (47 loc) · 1.49 KB
/
refresh_versions.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
48
49
50
# Worfklow for https://jmfayard.github.io/refreshVersions/
name: Refresh Dependencies
on:
workflow_dispatch:
schedule:
- cron: '0 7 * * 1'
jobs:
refresh-versions:
name: Check New Versions
runs-on: "ubuntu-latest"
steps:
- name: check-out
uses: actions/checkout@v4.2.2
with:
ref: trunk
- name: setup-java
uses: actions/setup-java@v4.5.0
with:
distribution: temurin
java-version: 21
cache: gradle
- name: create-branch
uses: peterjgrainger/action-create-branch@v3.0.0
with:
branch: dependency-update
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: gradle/actions/setup-gradle@v4.2.1
- name: Run Gradle
run: ./gradlew refreshVersions
- name: Commit
uses: EndBug/add-and-commit@v9
with:
author_name: GitHub Actions
author_email: noreply@github.com
message: Refresh versions.properties
new_branch: dependency-update
push: --force --set-upstream origin dependency-update
- name: Pull Request
uses: repo-sync/pull-request@v2
with:
source_branch: dependency-update
destination_branch: trunk
pr_title: Upgrade gradle dependencies
pr_body: '[refreshVersions](https://github.com/jmfayard/refreshVersions) has found those library updates!'
pr_draft: false
github_token: ${{ secrets.GITHUB_TOKEN }}