From 85c5eebfe19a909e8a3681197682fd3f03bf1448 Mon Sep 17 00:00:00 2001 From: Marko Frankovic Date: Thu, 27 Mar 2025 14:17:23 +0100 Subject: [PATCH] Clone curh-shemas #4 --- .github/workflows/maven-publish.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 064232a..9bc6dd1 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -26,14 +26,24 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Checkout tools repo + - name: Checkout tools repo feature branch uses: actions/checkout@v4 + continue-on-error: true with: repository: curh-backend/curh-schemas path: curh-schemas ref: ${{ github.ref }} token: ${{ secrets.DEVOPS_ACCESS_TOKEN }} + - name: Checkout tools repo main branch + uses: actions/checkout@v4 + if: ${{ hashFiles('curh-schemas/pom.xml') != '' }} + with: + repository: curh-backend/curh-schemas + path: curh-schemas + ref: main + token: ${{ secrets.DEVOPS_ACCESS_TOKEN }} + - name: Unpack curh schemas run: | cd curh-schemas/src/main/resources