Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow to periodically check for dependency updates #21

Merged
merged 2 commits into from Dec 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/dependencies.yml
@@ -0,0 +1,40 @@
name: dependency updates

on:
workflow_dispatch:
schedule:
# Every Thursday at 4:32 (note scheduled jobs might be delayed or skipped)
- cron: '32 4 * * 4'

jobs:
check:
name: Check for updated dependencies
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: main
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Check for dependency updates
uses: eskatos/gradle-command-action@v1.3.3
with:
arguments: versionCatalogUpdate --no-daemon
# Prevent the change to gradlew to be included in the PR
- name: Revert gradlew change
run: git checkout gradlew
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: Dependency updates
delete-branch: true
branch: catalog-dependency-updates
title: Dependency updates
body: Here are some suggested updates to dependencies :)
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Expand Up @@ -22,7 +22,7 @@ gradlePlugins-junit5="1.8.0.0"
gradlePlugins-kotlinter="3.6.0"
gradlePlugins-ksp="1.5.31-1.0.0"
gradlePlugins-protobuf = "0.8.17"
gradlePlugins-versionCatalog = "0.2.0"
gradlePlugins-versionCatalog = "0.2.1"
gradlePlugins-versionsBenManes = "0.39.0"
junit="5.8.1"
hilt="1.0.0"
Expand Down