mirror of
https://github.com/spring-projects/spring-security.git
synced 2026-03-25 19:41:05 +00:00
35 lines
1.3 KiB
YAML
35 lines
1.3 KiB
YAML
name: Execute Gradle Wrapper Upgrade
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 2 * * *' # 2am UTC
|
|
workflow_dispatch:
|
|
permissions:
|
|
pull-requests: write
|
|
jobs:
|
|
upgrade_wrapper:
|
|
name: Execution
|
|
if: ${{ github.repository == 'spring-projects/spring-security' }}
|
|
runs-on: ubuntu-latest
|
|
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/"
|
|
git config --global user.name 'github-actions[bot]'
|
|
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- name: Set up JDK 25
|
|
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
|
|
with:
|
|
java-version: '25'
|
|
distribution: 'temurin'
|
|
- name: Set up Gradle
|
|
uses: gradle/setup-gradle@f29f5a9d7b09a7c6b29859002d29d24e1674c884 # v5.0.1
|
|
- name: Upgrade Wrappers
|
|
run: ./gradlew clean upgradeGradleWrapperAll --continue -Porg.gradle.java.installations.auto-download=false
|
|
env:
|
|
WRAPPER_UPGRADE_GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|