Skip to content

Upgrade Gradle wrapper #555

Upgrade Gradle wrapper

Upgrade Gradle wrapper #555

name: Upgrade Gradle wrapper
on:
schedule:
- cron: '0 0 * * *' # Every day at 00:00 UTC
workflow_dispatch:
jobs:
Gradle:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Git config
env:
TOKEN: ${{ secrets.GH_BOT_GITHUB_TOKEN }}
run: |
git config --global url."https://bot-githubaction:${TOKEN}@github.com/".insteadOf "https://github.com/"
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@ea88154188003ca5aeb616063b2d0dd6a9cf86e2
with:
gpg_private_key: ${{ secrets.GH_BOT_PGP_PRIVATE_KEY }}
passphrase: ${{ secrets.GH_BOT_PGP_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
git_config_global: true
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: 'Setup Gradle'
uses: gradle/actions/setup-gradle@v4
with:
develocity-access-key: ${{ secrets.DEVELOCITY_GRADLE_ORG_ACCESS_KEY }}
- name: 'Upgrade Gradle wrapper'
env:
WRAPPER_UPGRADE_GIT_TOKEN: ${{ secrets.GH_BOT_GITHUB_TOKEN }}
run: ./gradlew clean upgradeGradleWrapperAll --no-build-cache