From de27bdcbdbad0b4fd92d60cea06f9c69ad4b1f26 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Wed, 8 Apr 2026 11:46:18 -0300 Subject: [PATCH] Reuse Ecosystem workflow --- .github/workflows/quarkus-snapshot.yaml | 50 +++---------------------- 1 file changed, 5 insertions(+), 45 deletions(-) diff --git a/.github/workflows/quarkus-snapshot.yaml b/.github/workflows/quarkus-snapshot.yaml index 4608d82c..f811fc57 100644 --- a/.github/workflows/quarkus-snapshot.yaml +++ b/.github/workflows/quarkus-snapshot.yaml @@ -4,20 +4,6 @@ on: watch: types: [started] - # For this CI to work, ECOSYSTEM_CI_TOKEN needs to contain a GitHub with rights to close the Quarkus issue that the user/bot has opened, - # while 'ECOSYSTEM_CI_REPO_PATH' needs to be set to the corresponding path in the 'quarkusio/quarkus-ecosystem-ci' repository - -env: - ECOSYSTEM_CI_REPO: quarkusio/quarkus-ecosystem-ci - ECOSYSTEM_CI_REPO_FILE: context.yaml - JAVA_VERSION: 17 - - ######################### - # Repo specific setting # - ######################### - - ECOSYSTEM_CI_REPO_PATH: quarkus-openapi-generator - permissions: contents: read @@ -25,36 +11,10 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -defaults: - run: - shell: bash - jobs: build: - name: "Build against latest Quarkus snapshot" - runs-on: ubuntu-latest - # Allow to manually launch the ecosystem CI in addition to the bots - if: github.actor == 'quarkusbot' || github.actor == 'quarkiversebot' || github.actor == '' - - steps: - - name: Set up Java - uses: actions/setup-java@v5 - with: - distribution: temurin - java-version: ${{ env.JAVA_VERSION }} - - - name: Checkout repo - uses: actions/checkout@v6 - with: - path: current-repo - - - name: Checkout Ecosystem - uses: actions/checkout@v6 - with: - repository: ${{ env.ECOSYSTEM_CI_REPO }} - path: ecosystem-ci - - - name: Setup and Run Tests - run: ./ecosystem-ci/setup-and-test - env: - ECOSYSTEM_CI_TOKEN: ${{ secrets.ECOSYSTEM_CI_TOKEN }} \ No newline at end of file + uses: quarkiverse/.github/.github/workflows/quarkus-ecosystem-ci.yml@main + secrets: inherit + with: + ecosystem_ci_repo_path: quarkus-openapi-generator + java_version: 17