Skip to content
This repository was archived by the owner on Dec 7, 2022. It is now read-only.

Add workflow to update Gradle wrapper automatically, update to 6.7 #41

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/gradle-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Gradle wrapper update

on:
schedule:
- cron: '0 7 * * *'

jobs:
update-gradle:
env:
APP_CENTER_TOKEN: ${{secrets.APP_CENTER_TOKEN}}
APP_CENTER_APP: ${{secrets.APP_CENTER_APP}}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Validate checksum gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Gradle cache
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: rahulsom/[email protected]
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip