From bf1e8945e579c55893490501a3fc8d3695773bf2 Mon Sep 17 00:00:00 2001 From: Helber Belmiro Date: Fri, 10 Nov 2023 16:34:59 -0300 Subject: [PATCH] Fix CI (#560) After https://github.com/quarkiverse/quarkus-openapi-generator/pull/511, CI is failing when merging a PR. See: https://github.com/quarkiverse/quarkus-openapi-generator/actions/runs/6811912710 --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ef60e759..2083a4b1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,10 +49,12 @@ jobs: run: mvn '-Dorg.slf4j.simpleLogger.log.org.openapitools=off' -B formatter:validate impsort:check verify --file pom.xml - name: Store PR id + if: github.event_name == 'pull_request' run: | echo ${{ github.event.number }} > ./docs/target/generated-docs/pr-id.txt - name: Publishing directory for PR preview + if: github.event_name == 'pull_request' uses: actions/upload-artifact@v3 with: name: site @@ -86,12 +88,14 @@ jobs: run: mvn -Presteasy-reactive '-Dorg.slf4j.simpleLogger.log.org.openapitools=off' -B formatter:validate impsort:check verify --file pom.xml - name: Store PR id + if: github.event_name == 'pull_request' run: | echo ${{ github.event.number }} > ./docs/target/generated-docs/pr-id.txt - name: Publishing directory for PR preview + if: github.event_name == 'pull_request' uses: actions/upload-artifact@v3 with: name: site path: ./docs/target/generated-docs - retention-days: 3 \ No newline at end of file + retention-days: 3