-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathaction.yaml
More file actions
33 lines (33 loc) · 1.13 KB
/
action.yaml
File metadata and controls
33 lines (33 loc) · 1.13 KB
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
name: Update Gradle lockfiles and raise PR
description: If any lockfiles are outdated, updates them and raises a pull request
inputs:
token:
description: 'Github auth token with permissions to raise a PR'
required: true
lock-settings:
description: 'shell command to run after updating lock files. Can be used to cleanup locks'
default: 'false'
pr-title:
description: 'Title for the generated PR'
default: 'NO-TICKET: Update gradle locks (Automated)'
runs:
using: composite
steps:
- name: Update lockfiles
uses: hypertrace/github-actions/gradle@main
with:
args: resolveAndLockAll --write-locks --refresh-dependencies
- name: Remove settings lock if needed
if: inputs.lock-settings != 'true'
shell: bash
run: rm settings-gradle.lockfile || true
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: ${{ inputs.pr-title }}
body: |
# Autogenerated gradle lock updates
commit-message: Update gradle locks
delete-branch: true
branch-suffix: timestamp
token: ${{ inputs.token }}