Update Dependencies #265
This file contains 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: Update Dependencies | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 4 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout to push branch | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.ref }} | |
fetch-depth: 0 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: 'corretto' | |
- name: Update dependencies | |
run: | | |
export GRADLE_USER_HOME=$(pwd)/.gradle | |
chmod +x ./gradlew | |
./gradlew versionCatalogUpdate | |
- name: Create report env variable | |
run: | | |
{ | |
echo 'REPORT<<EOF' | |
cat build/dependencyUpdates/report.txt | tail -n +6 | |
echo EOF | |
} >> "$GITHUB_ENV" | |
- name: Create pull request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
token: ${{ secrets.PAT }} | |
commit-message: update dependencies | |
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | |
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | |
signoff: false | |
branch: github-actions-bot/update-deps | |
delete-branch: true | |
title: 'Update Dependencies' | |
body: ${{ env.REPORT }} | |
reviewers: ${{ github.actor }} |