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