Update Dependencies #87
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
# WARNING: Do not edit this file directly. Instead, go to: | |
# | |
# https://github.com/micronaut-projects/micronaut-project-template/tree/master/.github/workflows | |
# | |
# and edit them there. Note that it will be sync'ed to all the Micronaut repos | |
name: Update Dependencies | |
on: | |
schedule: | |
- cron: '0 4 * * SUN' | |
jobs: | |
dependency-updates: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2.1.7 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Set up JDK | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'adopt' | |
java-version: '8' | |
- name: Export Gradle Properties | |
uses: micronaut-projects/github-actions/export-gradle-properties@master | |
- name: Check Dependencies | |
env: | |
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | |
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }} | |
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }} | |
run: ./gradlew useLatestVersions | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v3.12.1 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
committer: micronaut-build <${{ secrets.MICRONAUT_BUILD_EMAIL }}> | |
author: micronaut-build <${{ secrets.MICRONAUT_BUILD_EMAIL }}> | |
commit-message: Update dependencies | |
title: 'Dependency upgrades' | |
body: Upgrades dependencies to their latest versions | |
labels: "type: dependency-upgrade" | |
branch: dependency-updates |