Weekly Refresh Versions #229
This file contains hidden or 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: Weekly Refresh Versions | |
| on: | |
| schedule: | |
| - cron: "0 0 * * 2" | |
| jobs: | |
| refresh-versions: | |
| name: Refresh Versions and Push | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: gradle/wrapper-validation-action@v1 | |
| - uses: actions/setup-java@v1 | |
| with: | |
| java-version: 11 | |
| - uses: actions/cache@v2 | |
| with: | |
| path: ~/.gradle/caches | |
| key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle.kts') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/versions.properties') }} | |
| - name: Refresh Versions | |
| run: | | |
| branch_name=build/weekly-refresh-versions | |
| git checkout -b $branch_name | |
| ./gradlew refreshVersions | |
| git config user.name github-actions | |
| git config user.email github-actions@github.com | |
| git add . | |
| git commit -m "Refresh Versions" | |
| git push -u origin $branch_name -f |