mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-04-05 21:04:15 +02:00
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
name: Execute Wrapper Upgrade
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 2 * * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
upgrade_wrapper:
|
|
name: Execution
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
|
|
steps:
|
|
- name: Set up Git configuration
|
|
env:
|
|
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: git config --global url."https://unused-username:${TOKEN}@github.com/".insteadOf "https://github.com/"
|
|
- name: Import GPG key
|
|
uses: crazy-max/ghaction-import-gpg@cb4264d3319acaa2bea23d51ef67f80b4f775013
|
|
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
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Set up JDK 11
|
|
uses: actions/setup-java@v2
|
|
with:
|
|
java-version: '11'
|
|
distribution: 'adopt'
|
|
- name: Upgrade Wrappers
|
|
uses: gradle/gradle-build-action@v2
|
|
with:
|
|
arguments: 'upgradeGradleWrapperAll --continue'
|
|
env:
|
|
WRAPPER_UPGRADE_GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|