From 52d7dbd7cee3b0dd738dbcc1a30bcdfa7b936536 Mon Sep 17 00:00:00 2001 From: amithkoujalgi Date: Sat, 30 Aug 2025 21:10:54 +0530 Subject: [PATCH] Update build-on-pull-request.yml --- .github/workflows/build-on-pull-request.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-on-pull-request.yml b/.github/workflows/build-on-pull-request.yml index 0c3d266..97ad372 100644 --- a/.github/workflows/build-on-pull-request.yml +++ b/.github/workflows/build-on-pull-request.yml @@ -14,8 +14,7 @@ concurrency: cancel-in-progress: true jobs: - run-tests: - + build: runs-on: ubuntu-latest permissions: contents: read @@ -33,11 +32,18 @@ jobs: - name: Build with Maven run: mvn --file pom.xml -U clean package - - name: Call run-tests.yml - uses: ./.github/workflows/run-tests.yml - with: - branch: ${{ github.head_ref || github.ref_name }} + run-tests: + needs: build + uses: ./.github/workflows/run-tests.yml + with: + branch: ${{ github.head_ref || github.ref_name }} + build-docs: + needs: [build, run-tests] + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 - name: Use Node.js uses: actions/setup-node@v3 with: