-
Notifications
You must be signed in to change notification settings - Fork 68
32 lines (29 loc) · 1 KB
/
bump-snapshots.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
name: bump-snapshots
on:
workflow_dispatch: {}
schedule:
- cron: 0 11 * * WED
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 "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
- name: bump-rewrite-properties-to-snapshots
run: |
./mvnw versions:update-properties -DincludeProperties=rewrite.version,rewrite.python.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 && rm -f pom.xml.versionsBackup