Skip to content

bump-snapshots

bump-snapshots #67

---
name: bump-snapshots
on:
workflow_dispatch: {}
schedule:
- cron: 0 11 * * THU
jobs:
bump-snapshots:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: maven
server-id: ossrh
settings-path: ${{ github.workspace }}
- name: configure-git-user
run: |
git config user.email "[email protected]"
git config user.name "team-moderne[bot]"
- name: bump-rewrite-properties-to-snapshots
run: |
./mvnw versions:update-properties -DincludeProperties=rewrite.version,rewrite.kotlin.version -DallowSnapshots=true
git diff-index --quiet HEAD pom.xml || (git commit -m "Bump rewrite.version properties" pom.xml && git push origin main)