diff --git a/.github/workflows/spec-update.yaml b/.github/workflows/spec-update.yaml index b8560307b..7cd80ffbf 100644 --- a/.github/workflows/spec-update.yaml +++ b/.github/workflows/spec-update.yaml @@ -59,11 +59,6 @@ jobs: java-version: ${{ env.JAVA_VERSION }} cache: 'maven' - - name: "Install Baseline SDK Version" - # this is needed as otherwise "process sources" will fail on e.g. orchestration module, if the core module isn't in the maven cache - run: | - mvn install -DskipTests - - name: "Checkout or Create Branch" id: branch # Checkout branch if it exists, otherwise create it @@ -110,6 +105,11 @@ jobs: echo "spec_diff=false" >> "$GITHUB_OUTPUT" fi + - name: "Install Baseline SDK Version" + # this is needed as otherwise "process sources" will fail on e.g. orchestration module, if the core module isn't in the maven cache + run: | + mvn install -DskipTests + - name: "Generate" id: generate if: steps.spec_diff.outputs.spec_diff == 'true'