From 42c8c15a75fa2160999a98ed7f5ae5e52ca685cf Mon Sep 17 00:00:00 2001 From: Jan Martiska Date: Mon, 24 Jun 2024 12:43:37 +0200 Subject: [PATCH] Fix the nightly job --- .github/workflows/build-against-langchain4j.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-against-langchain4j.yml b/.github/workflows/build-against-langchain4j.yml index d14fbc96e..fd57d9515 100644 --- a/.github/workflows/build-against-langchain4j.yml +++ b/.github/workflows/build-against-langchain4j.yml @@ -35,14 +35,15 @@ jobs: - name: Build langchain4j run: | - mkdir langchain4j - cd langchain4j git clone https://github.com/langchain4j/langchain4j.git cd langchain4j ./mvnw -B clean install -DskipTests -DskipITs - name: Build with Maven - run: ./mvnw -B clean install -Dno-format + run: | + LANGCHAIN4J_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout -f langchain4j/pom.xml) + echo "LANGCHAIN4J_VERSION=$LANGCHAIN4J_VERSION" + ./mvnw -B clean install -Dno-format -Dlangchain4j.version=$LANGCHAIN4J_VERSION env: PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }} PINECONE_ENVIRONMENT: ${{ secrets.PINECONE_ENVIRONMENT }}