Skip to content

Commit 785b001

Browse files
committed
use rewrite.sh in the action definition
1 parent f57918e commit 785b001

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
java-version: 17
2626
distribution: 'zulu'
2727
server-id: central
28+
cache: maven
2829
- name: Install maven
2930
uses: sfesenko/setup-sdkman@v1
3031
with:
@@ -41,12 +42,7 @@ jobs:
4142

4243
- name: Apply upgrades
4344
working-directory: projects/${{ matrix.project }}/git_repo
44-
run: |
45-
mvn -e -U \
46-
-DskipMavenParsing=true \
47-
org.openrewrite.maven:rewrite-maven-plugin:run \
48-
-Drewrite.recipeArtifactCoordinates=dev.morphia.morphia:rewrite:3.0.0-SNAPSHOT \
49-
-Drewrite.activeRecipes=dev.morphia.UpgradeToMorphia30
45+
run: ../../../rewrite.sh
5046

5147
- name: ${{ matrix.project }} Post-upgrade build
5248
working-directory: projects/${{ matrix.project }}

rewrite.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#! /bin/bash
22

3-
rm -vfr ~/.m2/repository/dev/morphia/morphia/rewrite/
43
mvn -e -U \
54
org.openrewrite.maven:rewrite-maven-plugin:run \
65
-Drewrite.recipeArtifactCoordinates=dev.morphia.morphia:rewrite:3.0.0-SNAPSHOT \

0 commit comments

Comments
 (0)